By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
CREATE SCHEMA
CREATE TABLE
CREATE SCHEMA
CREATE FUNCTION
| f_copy_tbl | f_copy_tbl | f_copy_tbl | f_copy_tbl |
|---|---|---|---|
SELECT 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 2
INSERT 0 2
INSERT 0 1
INSERT 0 1
INSERT 0 1
| test1 | tbl_id | col1 | col2 | test2 | some_serial | some_other | Odd_COL |
|---|---|---|---|---|---|---|---|
| null | 1 | 2023-06-14 00:00:00 | null | 666 | 1 | 1 | 1 |
| null | 2 | 2023-06-14 00:00:00 | null | 666 | 2 | 2 | 2 |
SELECT 2
| test1 | tbl_id | col1 | col2 | test2 | some_serial | some_other | Odd_COL |
|---|---|---|---|---|---|---|---|
| null | 1 | 2023-06-14 00:00:00 | null | 666 | 1 | 1 | 1 |
| null | 2 | 2023-06-14 00:00:00 | null | 666 | 2 | 2 | 2 |
SELECT 2
| test1 | col1 | col2 | test2 |
|---|---|---|---|
| 3 | null | null | null |
| 4 | null | null | null |
SELECT 2
| test1 | col1 | col2 | test2 |
|---|---|---|---|
| 3 | null | null | null |
| 4 | null | null | null |
SELECT 2
| ID | col1 | col2 | test2 | sTupid_colNAME |
|---|---|---|---|---|
| 1 | null | null | null | 1 |
SELECT 1
| ID | col1 | col2 | test2 | sTupid_colNAME |
|---|---|---|---|---|
| 1 | null | null | null | 1 |
SELECT 1
| ID | col1 | col2 | test2 | sTupid_colNAME |
|---|---|---|---|---|
| 1 | null | null | null | 1 |
SELECT 1