🏠
Working from home
Pinned Loading
-
-
search text global.
search text global. 1/*
2input: search word, schemas[], verbose_is_true_or_false
3output: ctids, tablename, column name.
4global_search is a plpgsql function that search _srctext in all the visible tables(table,materialized view) of the public schema (default)
5if you specified schemas, then search agaginst all the visible tables in an array schemas (param schema_names).
-
passing variable while do insert ope...
passing variable while do insert operation 1/*
2https://dba.stackexchange.com/questions/303502/pass-a-variable-with-insert-update-delete-statements/303546#303546
3https://dbfiddle.uk/ZsFssnOW
4*/
5 -
WindowsFunction
WindowsFunction 12select * from emp; -- show the whole table.
3begin;
4create table emp(empid int primary key, name text, department text, salary numeric);
5insert into emp(empid, name, department, salary) values
-
for timestamp range, enforce no_adja...
for timestamp range, enforce no_adjacent, no_overlap, enforce_bounds constraints. 1--using constraint make 2 timestamp range not overlap.
2--using constraint make 2 timestamp range not adjacent.
3--using constraint make rtimestamp range include range lower bound, exclude upper bound.
4/*
5https://dbfiddle.uk/KyOD2a58
-
select_specific_column_to_json_agg.sql
select_specific_column_to_json_agg.sql 1/*
2https://dba.stackexchange.com/questions/69655/select-columns-inside-json-agg/69658#69658
34*/
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.