时间:2021-07-01 10:21:17 帮助过:5人阅读
1 /*插入记录*/ 2 3 --完整填写 4 insert into T_emp 5 ( 6 empno, 7 empname, 8 gender, 9 age. 10 createtime, 11 isdelete 12 ) 13 values 14 ( 15 ‘x1234567‘, 16 ‘关云长‘, 17 ‘男‘, 18 ‘24‘, 19 sysdate, 20 ‘N‘ 21 ); 22 23 --仅填写两个不可重复的字段 24 insert into T_emp 25 ( 26 empno, 27 empname 28 ) 29 values 30 ( 31 ‘x1234568‘, 32 ‘赵子龙‘ 33 );View Code 删除记录:
1 --删除记录 2 delete from t_emp 3 where empno=‘x1234567‘;View Code 更新记录:
1 update t_emp 2 set empno=‘x7654321‘ 3 where empno=‘x1234567‘;View Code 查询记录:
1 select empno,empname 2 from t_emp 3 where rownum<=2;View Code
Oracle SQL示例
标签:gen null opened not one where name tab int