create table todo_info(
id number primary key,
todo_info varchar(1000) not null,
todo_Date date not null,
done boolean not null default false
)
\set flag 爱吃饭
\echo :flag
insert into todo_info(id,todo_info,todo_date) values(1,:'flag',sysdate);
CREATE TABLE t1
(
a int,
b int
);
INSERT INTO t1 VALUES(1,1);
INSERT INTO t1 VALUES(2,2);
SELECT * FROM t1;
\H实行命令后,我们看下查询结果。
\timing on
explain sql;
explain analyze sql;这个命令假如你想要实行,切记在实行之前开启事务,以确保在测试过程中不会对数据库产生实际的修改或影响。实行完毕后,请务必回滚事务,以规复数据的原始状态,从而避免对数据库情况造成任何不可预见的变化或损害。
欢迎光临 IT评测·应用市场-qidao123.com技术社区 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |