随笔分类 -  Oracle

摘要:--基本函数--select name,count(id) from work_test group by name having count(id)>1--select upper(name),t.*,lower(name),substr(name,1,5) from WORK_TEST t--连 阅读全文
posted @ 2019-01-22 10:10 fuhaizi 阅读(113) 评论(0) 推荐(0)
摘要:--创建用户 --语句结构CREATE USER 用户名 IDENTIFIED BY 口令 [ACCOUNT LOCK|UNLOCK] Create User xx IDentified by Lock|UNLOCK --默认锁定用户 不可登陆 Create User xx IDENTIFIED B 阅读全文
posted @ 2019-01-22 10:07 fuhaizi 阅读(220) 评论(0) 推荐(0)
摘要:创建表 SQL>create table classes( classId number(2), cname varchar2(40), birthday date ); 添加一个字段 SQL>alter table student add (classId number(2)); 修改字段长度 SQL>al... 阅读全文
posted @ 2019-01-22 10:01 fuhaizi 阅读(249) 评论(0) 推荐(0)