当前位置: 首页 > news >正文

电子商务网站建设定义东莞建设网站培训

电子商务网站建设定义,东莞建设网站培训,邵阳网站建设的话术,支持api网站开发2019独角兽企业重金招聘Python工程师标准 -----创建表---- ----------表格头英文换中文显示select name as 名字,age 年龄,class from student -----if not exists判断表存在否--字符串用char也行--- --如果用自增长#xff0c;只能用包装类型integer,不能用int… 2019独角兽企业重金招聘Python工程师标准 -----创建表---- ----------表格头英文换中文显示select name as 名字,age 年龄,class from student -----if not exists判断表存在否--字符串用char也行--- --如果用自增长只能用包装类型integer,不能用int-- create table if not exists student(id Integer primary key  autoincrement not null,        name String not null,       sex  String not null,         age  int not null,         hight real ,        class  String ) ------用逗号分隔最后一个字段不用写----- ---删除表------ drop table student ------插入一条数据------ insert into student (name,sex,age,hight,class) values(张三,男,21,178,cc111) ------插入多条数据------ insert into student (name,sex,age,hight,class) values(李四,男,23,170,cc111),(王五,女,20,173,cc111) ,(赵六,男,22,179,cc112), (朱七,女,24,171,cc112) ------查询所有数据------ select * from student ------------------- select * from student where age22 ------修改数据------ ---- update 表名  set 字段 -加条件 where --- update student set hightnull where id5 -----班级为cc111,男hight不为null,则每个高度都增长1 update student set highthight1 where classcc111 and sex女 and hight not null ---------------凡是cc111班年龄减1----update student set ageage-1 where classcc111  -------------凡是cc111班或者性别为女的则高度1----------------------update student set highthight1 where classcc111 or sex女  --------修改名字的第一个字为王的年龄减1岁 update student set age age-1 where name like 王% -----------修改名字为张三或者为李四的班级为cc112---------------- update student set classcc112 where name in(张三,李四) ----删除所有 delete from student -------删除名字含朱的 delete from student where name like %朱% --查询所有 select * from student ---女的 select * from student where sex女 ------查询cc111班的人的名字 select name from student where classcc111 --查询大于21小于23的人 select * from student where age21 and age23 ---查询名字含朱的 select * from student where name like %朱% ---------查询cc111班女生并且按年龄从小到大排序-  order by,降序 desc默认就是升序- select * from student where sex女 and classcc111 order by age desc -------------查询所有女生并且按年龄从大到小排序-,只显示前3个---- ----limit 偏移量0表示第一个显示的个数-----  select * from student where sex女 order by age desc limit 0,2 ---查询出cc112班的总人数-------- select count(*) from student where classcc112 ------查询出cc112班的所有人的年龄总和--------------- select sum(age) from student where classcc112 -------查询出cc111班的平均年龄------------- select avg(age) from student where classcc112 -----查询所有的班级的男性人数并且按班级进行分组 group by --------- select class,count(*) from student where sex男 group by class -----查询cc112班年龄最大的学员----------- select max(age),name from student where classcc112 -----查询班上的所有学员按班级进行分组再进行降序并且只列出总人数大于等于1个班级----------- select class,count(*) from student  group by class having count(*)1 order by count(*) desc 转载于:https://my.oschina.net/u/2541146/blog/551994
http://www.zqtcl.cn/news/394806/

相关文章:

  • 郑州 手机网站制作广州网站优化地址
  • 国外效果图网站2022百度seo优化工具
  • 品牌网站建设 磐石网络官方网站网络科技公司 网站建设
  • 厦门启明星网站建设学校网站模板 中文
  • 高端手机网站平台深圳网上申请个人营业执照
  • 沈阳怎么做网站西亚网站建设科技
  • 做外贸免费的网站有哪些专业简历制作
  • 园林景观设计网站推荐国内wordpress主题
  • 一流的免费网站建设摄影网站源码
  • 深圳高端网站设计公司怎样开发手机网站建设
  • 做网站需要用c语言吗新闻热点
  • 做网站需要交维护费么网站建设详细合同范本
  • 网站运营需要做什么静态网站作品
  • 如何做旅游休闲网站苍南做网站
  • wordpress jp theme关键词排名优化公司成都
  • Soho外贸常用网站wordpress下不了插件吗
  • 企业网站建设小技巧有哪些WordPress网站小程序
  • 公司招聘网站续费申请seo编辑是干什么的
  • 58同城泉州网站建设人工投票平台app
  • dede 网站地图 插件网站引导页flash
  • 聊城做网站的公司渠道网站总体结构
  • 北京比较大的网站建设公司wap网站引导页特效
  • 做关于植物的网站即墨网站设计
  • 怎么提升网站收录商品网页制作
  • 做网站建设的平台wordpress5.0发布
  • 站长工具a级查网站域名
  • 免费做网站电话手机开发者模式打开有什么影响
  • 上海免费网站建站模板毕节做网站优化
  • 影响网站建设的关键点手机网站制作app
  • 商务网站建设的流程深圳模板网站建设案例