随笔分类 - 数据库
摘要:select from tablenmae where id in(1,2,3) 这样的语句和常用,但是如果in 后面的 1,2,3是变量怎么办呢,一般会用字符串连接的方式构造sql语句 string aa="1,2,3"; string sqltxt="select from tablename
阅读全文
摘要:最近在开发过程中,遇到一些麻烦,就是开发效率问题,有时候其他同事使用PLSQL 编程效率明显高于自己,观察了好久,才发现他使用PLSQL 已经很长时间了而且,他自己也在其中添加了好多快捷方式, 1、登录后默认自动选中My Objects 默认情况下,PLSQL Developer登录后,Brower
阅读全文
摘要:1、说明:增加、删除一个列 Alter table tablename add columnName col type alter table tablename drop columnName column_b 2.添加删除主键 alter table tableName add constrai
阅读全文
摘要:1.create user username identified by password;//建用户名和密码oracle ,oracle 2.grant connect,resource,dba to username;//授权 grant connect,resource,dba,sysdba
阅读全文
摘要:Edit/Undo Ctrl+ZEdit/Redo Shift+Ctrl+ZEdit/PL/SQL Beautifier Ctrl+W (自定义) Shift+Home 选择光标位置到行首 Shift+End 选择光标位置到行尾 Ctrl+Shift+Home 选择光标位置到首行行首 Ctrl+Sh
阅读全文