代码搜索:sql

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

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

sql enum.sql

-- -- Enum tests -- CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple'); -- -- Did it create the right number of rows? -- SELECT COUNT(*) FROM pg_enum WHERE enumtypid
www.eeworm.com/read/376006/2718205

sql transactions.sql

-- -- TRANSACTIONS -- BEGIN; SELECT * INTO TABLE xacttest FROM aggtest; INSERT INTO xacttest (a, b) VALUES (777, 777.777); END; -- should retrieve one value-- SELECT a FROM xacttest WHERE
www.eeworm.com/read/376006/2718206

sql prepare.sql

-- Regression tests for prepareable statements. We query the content -- of the pg_prepared_statements view as prepared statements are -- created and removed. SELECT name, statement, parameter_types F
www.eeworm.com/read/376006/2718207

sql sequence.sql

--- --- test creation of SERIAL column --- CREATE TABLE serialTest (f1 text, f2 serial); INSERT INTO serialTest VALUES ('foo'); INSERT INTO serialTest VALUES ('bar'); INSERT INTO serialTest VALUES
www.eeworm.com/read/376006/2718208

sql txid.sql

-- txid_snapshot data type and related functions -- i/o select '12:13:'::txid_snapshot; select '12:18:14,16'::txid_snapshot; -- errors select '31:12:'::txid_snapshot; select '0:1:'::txid_snapshot; s
www.eeworm.com/read/376006/2718211

sql union.sql

-- -- UNION (also INTERSECT, EXCEPT) -- -- Simple UNION constructs SELECT 1 AS two UNION SELECT 2; SELECT 1 AS one UNION SELECT 1; SELECT 1 AS two UNION ALL SELECT 2; SELECT 1 AS two UNION ALL SE
www.eeworm.com/read/376006/2718213

sql limit.sql

-- -- LIMIT -- Check the LIMIT/OFFSET feature of SELECT -- SELECT ''::text AS two, unique1, unique2, stringu1 FROM onek WHERE unique1 > 50 ORDER BY unique1 LIMIT 2; SELECT ''::text AS five, uni
www.eeworm.com/read/376006/2718215

sql delete.sql

CREATE TABLE delete_test ( id SERIAL PRIMARY KEY, a INT ); INSERT INTO delete_test (a) VALUES (10); INSERT INTO delete_test (a) VALUES (50); INSERT INTO delete_test (a) VALUES (100); -- allo
www.eeworm.com/read/376006/2718218

sql polygon.sql

-- -- POLYGON -- -- polygon logic -- -- 3 o -- | -- 2 + | -- / | -- 1 # o + -- / | -- 0 #-----o-+ -- -- 0 1 2 3 4 -- CREATE TABLE POLYGON_TBL(f1 polygon); INSERT INTO
www.eeworm.com/read/376006/2718220

sql insert.sql

-- -- insert with DEFAULT in the target_list -- create table inserttest (col1 int4, col2 int4 NOT NULL, col3 text default 'testing'); insert into inserttest (col1, col2, col3) values (DEFAULT, DEFAULT