
mysql
job_csdn
这个作者很懒,什么都没留下…
展开
-
sql 添加注释的方法
mysql :1.创建字段时添加:create table test( id int not null default 0 comment '用户id' );// 修改字段的命令,可以加注释 alter table test change column id id int not null default 0 comment '测试表id';//创建表的时候加 create table test1 ( field_name int comment '字段原创 2022-03-23 10:04:11 · 22841 阅读 · 1 评论 -
mysql中 show index from tablename后每列的意思,各列的含义
[MySQL]show index from tb_name命令各列的含义转载 2022-01-05 16:05:54 · 491 阅读 · 0 评论 -
mybatis mapper.xml文件的sql书写技巧
1.语句末尾不能有分号 ;示例: <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from hkbi_meta_...原创 2020-01-18 12:03:13 · 3117 阅读 · 0 评论 -
mysql更改root用户及密码
方法1: 用SET PASSWORD命令首先登录MySQL。格式:mysql> set password for 用户名@localhost = password('新密码');例子:mysql> set password for root@localhost = password('123456');方法2:用mysqladmin格式:mysqladmin -u用户名 -p旧...原创 2019-08-30 11:57:49 · 2142 阅读 · 0 评论 -
win10中mysql数据仓库迁移
1.找到本地数据库的安装位置使用nacicat客户端连接数据库:在mysql命令中输入show global variables like "%datadir%"; 查看当前数据仓库位置show variables like "%char%"; //查看安装位置也可在本地服务中找到mysql服务。2.关闭数据库。复制文件使用管理员身份在cmd窗口时用...原创 2019-08-30 10:26:31 · 517 阅读 · 0 评论