数据库
CNGE
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sql server 常用语句
常用语句 结构 表结构 -- 添加列 ALTER TABLE [dbo].[INPAT_FEE] ADD ATC NVARCHAR(20) -- 添加自增列 alter table [dbo].[第五部分] add id int identity(1,1) not null -- 删除列 ALTER TABLE [dbo].[INPAT_FEE] DROP COLUMN ATC -- 更改列属性 Alter table [表名] alter column [列名] 类型 -- 修改列名 EXEC sp_原创 2021-05-21 16:51:25 · 332 阅读 · 0 评论 -
Oracle 常用脚本
– 连接 sqlplus sys/sys as sysdba; – 创建用户 create user ZLHIS identified by ZLHIS_2020; – 删除用户 drop user yb CASCADE; – 权限 grant connect,resource,dba to ZLHIS; grant dba to ZLHIS; –表空间 create tablespace ZL9MTLBASE datafile ‘E:\TABLESPACE\ZL9MTLBASE.dbf’ size 200原创 2021-05-21 17:39:57 · 245 阅读 · 1 评论 -
mysql 常用脚本
权限相关 -- 创建用户 CREATE USER 'gcn'@'localhost' IDENTIFIED BY '123456'; -- 创建一个用户 一个库的所有权限 grant all on ry.* to test_user@'%' identified by '123456'; --授予权限给用户 grant select, insert, update, delete on java_se.* to test_user@'%'; grant select, insert, update,原创 2021-05-21 17:10:12 · 137 阅读 · 0 评论
分享