![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
一只小程序员啊
新人求关注,我会不定时的发发一些软件开发的文章!
展开
-
mysql一些增删改表操作
1.增加表一列 alter table course add column count int(2) DEFAULT 0 not null COMMENT '数量' after 某列 alter table test.student add column indexxx int(14) primary key auto_increment first; 2.删除某一列 ALTER TABLE 表名 DROP COLUMN 列名; 3.修改某一列 -- 修改字段长度和类型 ALTER TA原创 2021-03-11 11:04:36 · 97 阅读 · 0 评论 -
Oracle常用命令
1.数据库的连接:用户名/密码 @数据库 (as sysdba/sysoper/system),连接后切换用户用conn或connect+前面的就行了。 2.查询数据库是否为归档模式:archivelog list或者select name,log_mode from v$database; 3.查询数据库当前的状态:select status from v$instance; 4.归...原创 2019-05-03 19:23:26 · 55 阅读 · 0 评论