Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
default
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
drop table if exists t ; create table t ( tid serial primary key, i int default 0, name text default 'Jack' ) ; with ins as (insert into t (i, name) -- all the columns except any serial values (default, default) returning i, name ) insert into t (i, name) select ins.i, ins.name from ins cross join generate_series(1, 9); -- one less than you need table t ; \\
absolute service time: 0,43 sec
edit mode
|
history
tid
i
name
1
1
0
Jack
2
2
0
Jack
3
3
0
Jack
4
4
0
Jack
5
5
0
Jack
6
6
0
Jack
7
7
0
Jack
8
8
0
Jack
9
9
0
Jack
10
10
0
Jack