11 2018 档案

摘要:1. 登陆oracle sqlplus '/as sysdba' 2. 修改密码 ALTER USER 用户名IDENTIFIED BY 要修改的密码 ; 3.解锁 alter user 用户名 account unlock; 阅读全文
posted @ 2018-11-27 17:33 不会游泳的鱼丶 阅读(167) 评论(0) 推荐(0) 编辑
摘要:追加字符 update table_name t set t.DIST_NAME = t.DIST_NAME || '市' where PROD_NAME='爱立信' table_name :表名 DIST_NAME:要追加字符的字段 '市': 追加字符的内容 where 后面为条件 (可不写) 替 阅读全文
posted @ 2018-11-27 17:30 不会游泳的鱼丶 阅读(1062) 评论(0) 推荐(0) 编辑
摘要:select count(*) from user_tab_columns t where t.TABLE_NAME='WPM_CHECK_ORDER' 阅读全文
posted @ 2018-11-27 17:25 不会游泳的鱼丶 阅读(347) 评论(0) 推荐(0) 编辑
摘要:select count(*) from user_tab_columns t where t.TABLE_NAME='WPM_CHECK_ORDER' 阅读全文
posted @ 2018-11-27 17:25 不会游泳的鱼丶 阅读(1149) 评论(0) 推荐(0) 编辑
摘要:1.查看dblink select owner,object_name from dba_objects where object_type='DATABASE LINK'; 或者 select * from dba_db_links; 2.创建dblink前提: 创建dblink的用户有对应的数据 阅读全文
posted @ 2018-11-26 09:48 不会游泳的鱼丶 阅读(184) 评论(0) 推荐(0) 编辑
摘要:数据库操作中,经常会因为导数据造成数据重复,需要进行数据清理,去掉冗余的数据,只保留正确的数据 一:重复数据根据单个字段进行判断 1、首先,查询表中多余的数据,由关键字段(name)来查询。 select * from table_name where name in (select name fr 阅读全文
posted @ 2018-11-23 11:43 不会游泳的鱼丶 阅读(1484) 评论(0) 推荐(1) 编辑