1.第一次使用scott/tiger 帐号登录plsql报错:the account is locked
使用system/123456(密码是安装oracle时自己设置的)登录,然后使用命令解锁用户。命令为:alter user username account unlock;其中username为被锁定的用户名。使用scott首次登录plsql时让设置密码
2.执行String sql = "INSERT INTO EMPS(ID,NAME,SALARY) VALUES(?,?,?)"; 报错“无效字符”: 去掉“;”解决问题
3.某一字段status类型为number,对应到java中是枚举类型字段status,status字段新增一种状态,现要求在数据库中的number值全部补充上该状态:
update table set p.status = bitor(p.status,16) where p.dwlx in('2','3','4','5');
对单位类型为2,3,4,5的数据全部补充上 16对应的二进制是1 0000