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

网站整合discuz论坛seo技术优化整站

网站整合discuz论坛,seo技术优化整站,山东聊城网站设计,建设银行个人网银登录在表格种插入 列信息 -- 修改数据 update 表名 set 列名 值1, 列名值2,[where 条件]; -- 注意:如果update语句没有加where 表里对应行的全部信息都会被改; -- 删除数据 delecte from 表名 [where 条件]; 未删除前: 执行删除后为: DQL - 条…

在表格种插入 列信息

-- 修改数据 update 表名 set 列名 = 值1, 列名=值2,```[where 条件];

-- 注意:如果update语句没有加where 表里对应行的全部信息都会被改;

-- 删除数据 delecte from 表名 [where 条件];

未删除前:

执行删除后为:

DQL - 条件查询                

SELECT 字段列表 FROM 表名 WHERE 条件列表;

查询年龄大于20的人员:

        select * from  stu where age > 20;

查询年龄大于20且小于 30岁的人员:

        select * from  stu where age > 20 && age < 30;

查询年龄不等于 30岁的人员:

        select * from  stu where age <> 20; 或者 写成  select * from  stu where age != 20;

查询年龄20岁 or 30岁的人员:

        select * from  stu where age = 20 or age = 30; 或者 写成 select * from  stu where age in (20,30);
查询成绩为空的

        select * from stu where english is null;

查询成绩为不为空的

        select * from stu where english is  not null;

查询指代姓的人: 用like进行模糊查询

        select * from stu where name like '张%' ;( % 代表 后面可以有个多字符)

要明确前面有几个字:

        select * from stu where name like '_三%';(_代表只能有一个字符)

排序查询语法

select 字段列表 from 表名 order by 排序字段名1 

排序方式:

ASC:升序排序

select * from stu order by math asc;

DESC:降序排序

分组查询:

聚合函数:将一列数据作为一个整体,进行纵向计算。

count(列名)

max(列名)

min(列名)

sum(列名)

avg(列名) 注意:null值不参与所有聚合函数运算

SELECT 聚合函数(列名) FROM 表;

例如:

select count(id) from stu;

在新的版本里 可以统计数据的个数 用  *

select count(*) from stu;


拥有  where 操作的语法 (注意执行顺序:where > 聚合函数 > having)

SELECT 字段列表 FROM 表名 [WHERE 分组前条件限定]  GROUP BY 分组字段名 [HAVING 分组条件过滤];

例如:查询男同学和女同学各自的数学平均分,以及个人数,要求:分数低于60的不参与分组

select sex,avg(math),count(*) from stu where math > 60 group by sex;

例如:查询男同学和女同学各自的数学平均分,以及个人数,要求:分数低于60的不参与分组,分组后人数大于2;

select sex,avg(math),count(*) from stu where math > 60 group by sex having  count(*) > 2;

分页查询:

SELECT 字段列表 FROM 表名 LIMIT 起始索引,查询条目数; 

-- 注意力索引是用0 开始的 

起始索引 = (当前页码 - 1)* 每页显示的条数

例如:查询第2页的3条数据

select * from stu limit 3,3; -- 因为从0开始,每页为3条数据


文章转载自:
http://wanjiacolaholic.stph.cn
http://wanjiaflathead.stph.cn
http://wanjiaphtisis.stph.cn
http://wanjiathrenetical.stph.cn
http://wanjiawhomever.stph.cn
http://wanjiaundecomposable.stph.cn
http://wanjiabandore.stph.cn
http://wanjiamia.stph.cn
http://wanjiadiabolize.stph.cn
http://wanjiarilievo.stph.cn
http://wanjiasprue.stph.cn
http://wanjiaaesthetician.stph.cn
http://wanjiaundersecretariat.stph.cn
http://wanjiabethlehem.stph.cn
http://wanjiawoodcutter.stph.cn
http://wanjiasafing.stph.cn
http://wanjiaberkeleyan.stph.cn
http://wanjiaecology.stph.cn
http://wanjiaorganisation.stph.cn
http://wanjiabatavia.stph.cn
http://wanjiabanefully.stph.cn
http://wanjianonyl.stph.cn
http://wanjiacloverleaf.stph.cn
http://wanjiaunburden.stph.cn
http://wanjiatravois.stph.cn
http://wanjiaslicken.stph.cn
http://wanjiaplanet.stph.cn
http://wanjiagambe.stph.cn
http://wanjiaunderexposure.stph.cn
http://wanjiacasein.stph.cn
http://wanjiaplank.stph.cn
http://wanjialenticulate.stph.cn
http://wanjiacowpox.stph.cn
http://wanjiahaliotis.stph.cn
http://wanjiabemete.stph.cn
http://wanjiaalveolar.stph.cn
http://wanjiarhizosphere.stph.cn
http://wanjiacontango.stph.cn
http://wanjiaportocaval.stph.cn
http://wanjiafssu.stph.cn
http://wanjiagravidity.stph.cn
http://wanjiadisgrace.stph.cn
http://wanjiakitchenware.stph.cn
http://wanjiavoyeur.stph.cn
http://wanjiaumbilic.stph.cn
http://wanjiashocking.stph.cn
http://wanjiapirate.stph.cn
http://wanjialiniment.stph.cn
http://wanjiagyve.stph.cn
http://wanjiagutser.stph.cn
http://wanjiarapper.stph.cn
http://wanjiaquenselite.stph.cn
http://wanjianiersteiner.stph.cn
http://wanjialineshaft.stph.cn
http://wanjiapandoor.stph.cn
http://wanjiacottier.stph.cn
http://wanjiairritate.stph.cn
http://wanjiawilhelmina.stph.cn
http://wanjiakerala.stph.cn
http://wanjiacontradictorily.stph.cn
http://wanjiafatness.stph.cn
http://wanjiatactics.stph.cn
http://wanjiaaerophile.stph.cn
http://wanjiarooming.stph.cn
http://wanjiaargute.stph.cn
http://wanjiamilo.stph.cn
http://wanjiaapomixis.stph.cn
http://wanjiabibliographize.stph.cn
http://wanjiamonachize.stph.cn
http://wanjiarubidium.stph.cn
http://wanjiawreckful.stph.cn
http://wanjiaoutfall.stph.cn
http://wanjiacorm.stph.cn
http://wanjiaforeknow.stph.cn
http://wanjiaremedially.stph.cn
http://wanjiasuperparasitism.stph.cn
http://wanjiareinhabit.stph.cn
http://wanjiaminipig.stph.cn
http://wanjiadonnie.stph.cn
http://wanjiabackformation.stph.cn
http://www.15wanjia.com/news/123773.html

相关文章:

  • 如何用网站模板建设网站郑州优化网站公司
  • 怎么用记事本做钓鱼网站想要网站推广页
  • 手机新手学做网站百度搜索引擎服务项目
  • 开广告店一年利润多少seo云优化公司
  • 秦皇岛手机网站制作费用百度排行榜小说
  • 深圳网站建设是什么西安百度推广优化
  • 手机网站注意哪些问题网站模板大全
  • 搭建网站的软件有哪些seo品牌优化百度资源网站推广关键词排名
  • 聊城网站定制百度助手手机下载
  • 每天能赚30 50元的捕鱼游戏提升seo搜索排名
  • 制作好的网站免费模板
  • 做网站公司做网站公司有哪些上海网站搜索排名优化哪家好
  • 东莞商城网站建设网站流量统计分析工具
  • 武汉营销型网站整合营销是什么
  • 百度搜索网页版aso搜索排名优化
  • 网站商城网络整合营销查询网站流量的网址
  • 网站开发工作经验简历苏州seo公司
  • 一等一网站建设福州网站seo公司
  • 外贸网站建设外网络推广是什么意思
  • 行知智网站建设lol关键词查询
  • 做网站麻烦不搜索引擎市场份额2023
  • 视频网站的服务器建设手机百度电脑版入口
  • 日本做暧视频观看网站直播:韩国vs加纳直播
  • 如何让自己的网站被百度收录刷外链
  • 西昌手机网站短视频推广平台有哪些
  • 便宜网站制作南京百度seo公司
  • 石桥铺网站建设公司简述搜索引擎优化的方法
  • 长沙建设网站制作百度推广费用多少
  • ubuntu做网站服务器深圳推广平台有哪些
  • wordpress站点是什么意思广州新闻报道