=================替换变量&===============使用一个&符号来指定一个变量值,执行SQL语句时,会提示用户输入一个数值. SQL> select sal from emp where empno=&emp_no; 输入 emp_no 的值: SAL ---------- SQL> select * from emp where &conditions; 输入 conditions 的值: sal EMPNO ENAME JOB MGR
merge into when matched then... when not mached then... merge into t_road_pre_parameter a from dual ) b on (a.TIME_SEGMENT=? and a.ROAD_ID=? and a.RS_INDEX=? and a.FLAG=) when matched then update set a.week_num=?, a.temperature = ?, a.if_rain
目录: sql语句 sql命令语句 关键字 sql语句 SELECT * FROM V$reserved_words;--查询oracle预留关键字 SELECT * FROM V$version;--查询oracle版本 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id; --查看被锁的表名 S