随笔分类 -  SQL语句

有关于sql的基本语句
摘要:建表语句例子 create table sys_user( name varchar(10) ,id int ,type varchar(10) ,xb varchar(10) ); 实际模板 create table 表名称(sys_user)( 字段名称1(name) 字段类型(varchar( 阅读全文
posted @ 2022-03-17 16:28 时间怕无聊 阅读(45) 评论(0) 推荐(0)
摘要:新建数据库:create database test; create database test character set utf-8;这个是设置编码的 查看数据库:show database; 使用数据库:use test; 查看当前使用的数据库:select database(); 查看数据库 阅读全文
posted @ 2022-03-17 15:11 时间怕无聊 阅读(59) 评论(0) 推荐(0)