代码搜索:sql

找到约 10,000 项符合「sql」的源代码

代码结果 10,000
www.eeworm.com/read/376006/2718164

sql time.sql

-- -- TIME -- CREATE TABLE TIME_TBL (f1 time(2)); INSERT INTO TIME_TBL VALUES ('00:00'); INSERT INTO TIME_TBL VALUES ('01:00'); -- as of 7.4, timezone spec should be accepted and ignored INSERT INTO
www.eeworm.com/read/376006/2718165

sql stats.sql

-- -- Test Statistics Collector -- -- Must be run after tenk2 has been created (by create_table), -- populated (by create_misc) and indexed (by create_index). -- -- conditio sine qua non SHOW track_c
www.eeworm.com/read/376006/2718166

sql comments.sql

-- -- COMMENTS -- SELECT 'trailing' AS first; -- trailing single line SELECT /* embedded single line */ 'embedded' AS second; SELECT /* both embedded and trailing single line */ 'both' AS third; -- t
www.eeworm.com/read/376006/2718167

sql returning.sql

-- -- Test INSERT/UPDATE/DELETE RETURNING -- -- Simple cases CREATE TEMP TABLE foo (f1 serial, f2 text, f3 int default 42); INSERT INTO foo (f2,f3) VALUES ('test', DEFAULT), ('More', 11), (upper(
www.eeworm.com/read/376006/2718169

sql arrays.sql

-- -- ARRAYS -- CREATE TABLE arrtest ( a int2[], b int4[][][], c name[], d text[][], e float8[], f char(5)[], g varchar(5)[] ); -- -- only the 'e' array is 0-based, the oth
www.eeworm.com/read/376006/2718171

sql namespace.sql

-- -- Regression tests for schemas (namespaces) -- CREATE SCHEMA test_schema_1 CREATE UNIQUE INDEX abc_a_idx ON abc (a) CREATE VIEW abc_view AS SELECT a+1 AS a, b+1 AS b
www.eeworm.com/read/376006/2718172

sql truncate.sql

-- Test basic TRUNCATE functionality. CREATE TABLE truncate_a (col1 integer primary key); INSERT INTO truncate_a VALUES (1); INSERT INTO truncate_a VALUES (2); SELECT * FROM truncate_a; -- Roll trunca
www.eeworm.com/read/376006/2718173

sql subselect.sql

-- -- SUBSELECT -- SELECT 1 AS one WHERE 1 IN (SELECT 1); SELECT 1 AS zero WHERE 1 NOT IN (SELECT 1); SELECT 1 AS zero WHERE 1 IN (SELECT 2); -- Set up some simple test tables CREATE TABLE SUBSEL
www.eeworm.com/read/376006/2718174

sql conversion.sql

-- -- create user defined conversion -- CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER; SET SESSION AUTHORIZATION conversion_test_user; CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' F
www.eeworm.com/read/376006/2718175

sql copyselect.sql

-- -- Test cases for COPY (select) TO -- create table test1 (id serial, t text); insert into test1 (t) values ('a'); insert into test1 (t) values ('b'); insert into test1 (t) values ('c'); insert into