随笔分类 - oracle
跳槽之后用到oracle,随时记下来
摘要:oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0//标注响应文件版本 oracle.install.option=INSTALL_DB_SWONLY//.只装数据库软
阅读全文
摘要:登陆 sqlplus username/password; 切换: conn username/password; 显示当前登陆用户: show user; 查看用户列表 select username from dba_users; 修改用户密码 alter user username identified by password
阅读全文
摘要:原链接:https://www.cnblogs.com/wxm-bk/p/6510654.html oracle 创建临时表空间/表空间,用户及授权 1:创建临时表空间 create temporary tablespace user_temp tempfile 'Q:\oracle\product
阅读全文
摘要:导出 exp username/password@address/listener file=D:\test\a.dmp 导入 imp username/password@host/listener file = D:\xx\xx.dmp log = D:\xx\xx.log full = y
阅读全文
摘要:备忘: 可以理解为,供过于求,你或你的表所需要的字段个数小于你通过sql语句给出的字段个数
阅读全文
摘要:备忘:这个函数最大是4000,根据拼接列的长度,通过限制拼接条数来防止拼接字符串过长错误
阅读全文
摘要:--统计数量 select count(*) from table; --统计某一列的数量(去空) select count(col) from table; --统计某一列的值大于或小于另一个值的数量(去不去空没试过) select count(CASE when t.column_name>0 then 'name' end) as new_name from table;
阅读全文
摘要:--查出当前系统时间 select SYSDATE from table; --格式转换 -- TO_CHAR 把日期或数字转换为字符串 -- TO_CHAR(number, '格式') -- TO_CHAR(salary, '$99,999.99') 、 -- TO_CHAR(date, '格式') -- TO_DATE 把字符串转换为数据库中的日期类型TO...
阅读全文
摘要:--创建临时表空间table_temp ,位置在 D:\works\Oracle_Database\_TSDAT01_DB\usertable_temp.dbfcreate temporary tablespace usertable_temp tempfile 'D:\works\Oracle_D
阅读全文