数据库语句
cherry_cindy
希望通过自己的努力,能够达到自己想要达到的效果
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysq对数据的l查询,增加,修改和删除sql语句
sql查询语句: select * from student where sname like '%李%' and sgroup>55 and sgroup sql插入语句: insert into student(sname,sage,sgroup,sex,class,number,location) values('李玉',20,88,'女','信管一班','湖南常德','1原创 2017-04-18 14:57:02 · 1259 阅读 · 0 评论 -
mysql数据库左,右,内链接之间的区别
1.全连接: 能满足左表或者能满足右表的数据,都被查询出来 select * from table1 full join table2 where table1.ip=table2.ip 2.内连接: 既满足左表又满足右表的数据 SELECT column_name(s) FROM table_name1 INNER JOIN table_name2 ON table_nam...原创 2017-04-19 15:38:51 · 708 阅读 · 0 评论 -
一些mysql的数据库基础语句
sql查询语句: select * from student where sname like '%李%' and sgroup>55 and sgroup sql插入语句: insert into student(sname,sage,sgroup,sex,class,number,location) values('李玉',20,88,'女','信管一班','湖南常德','135原创 2017-04-21 17:25:04 · 376 阅读 · 0 评论 -
mysql语句使用实例
从table1提取一个数据插入到table2中 select name,age into table2 from table1 where age between 20 and 30 创建数据语句 create databse my_sql.db 创建表的sql create table student (name var,age int,score int) constrain...原创 2018-12-24 14:49:16 · 444 阅读 · 0 评论 -
数据库语句
alter用法 新增一个表的列 alter table 表名 add 列名 datatype 删除一个表的列 alter table 表名 drop column 列名 修改列的数据类型 alter table 表名 alter column 列名 datatype auto_increment create table (p_id int not null primary key...原创 2018-12-25 11:33:14 · 203 阅读 · 0 评论 -
数据库类型
数据库类型(text文本): char:保存固定长度的字符串,可包含字母,数字,特殊字符。最多255个字符 varchar:保存可变长度的字符串,可包含字母数字特殊字符,最多255个字符,超过255个字符,被转换成text格式 tingtext:最大长度为255个字符的字符串、 text:存放65,535字符的字符串 blob:用于bolobs(binary large object)存...翻译 2018-12-25 12:15:24 · 357 阅读 · 0 评论
分享