06 2023 档案
摘要:-- 时间 转 字符串 select to_char(now()::timestamp(0) without time zone, 'YYYY-MM-DD HH24:MI:SS') as date_time_str; -- 导出表结构 select col.table_name, col.colum
阅读全文
摘要:-- 创建函数 CREATE FUNCTION del_ora_table() RETURNS void AS $$ DECLARE tmp VARCHAR(512); DECLARE names CURSOR FOR select tablename from pg_tables where sc
阅读全文
摘要:--创建索引 CREATE INDEX index_statistics1 ON dbo.integral (deleted,pid,created); --删除索引(需要选中dbo) DROP INDEX index_statistics5 --查询索引 SELECT * FROM pg_inde
阅读全文