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

手机网站免费空间seo优化推广业务员招聘

手机网站免费空间,seo优化推广业务员招聘,新版大都会app,网站开发准备工作一、SQL概述 (1)SQL背景知识 SQL(Structured Query Language,结构化查询语言)是使用关系模型的数据库应用语言,与数据直接打交道不同的数据库管理系统生产厂商都支持SQL语句,但都有特有内容 …

一、SQL概述

(1)SQL背景知识

  1. SQL(Structured Query Language,结构化查询语言)是使用关系模型的数据库应用语言,与数据直接打交道
  2. 不同的数据库管理系统生产厂商都支持SQL语句,但都有特有内容

(2)SQL语言排行榜

  1. 自从SQL加入了TIOBE编程语言排行榜,就一直保持在Top10

(3)SQL分类

SQL语言在功能上主要分为三大类:

  1. DDL(Data Definition Language,数据定义语言):这些语句定义了不同的数据库、表、视图、索引等数据库对象,还可以用来创建、删除、修改数据库和数据表的结构(CREATE\ALTER\DROP\RENAME\TRUNCATE)

  2. DML(Data Manipulation Language,数据操作语言):用于添加(INSERT)、删除(DELETE)、更新(UPDATE)和查询(SELECT)数据库记录,并检查数据的完整性

  3. DCL(Data Control Language,数据控制语言):用于定义数据库、表、字段、用户的访问权限和安全级别(COMMIT\ROLLBACK\SAVEPOINT\GRANT\REVOKE)

二、SQL语言的规则与规范

(1)基本规则

  1. SQL可以写在一行或者多行,为了提高可读性,各子句分行写,必要时使用缩进
  2. 每条命令以;或\g或\G结尾
  3. 关键字不能被缩写也不能分行
  4. 关于标点符号:
    1. 必须保证所有的()、单引号、双引号是成对结束的
    2. 必须使用英文状态下的半角输入方式
    3. 字符串型日期时间类型的数据可以使用单引号表示
    4. 列的别名,尽量使用双引号,而且不建议省略as

(2)SQL大小写规范

  1. MySQL在Windows环境下是大小写不敏感的
  2. MySQL在Linux环境下是大小写敏感的
    1. 数据库名、表名、表的别名、变量名是严格区分大小写的
    2. 关键字、函数名、列名(字段名)、列的别名(字段的别名)是忽略大小写的
  3. 推荐采用统一的书写规范:
    1. 数据库名、表名、表别名、字段名、字段别名都小写
    2. SQL关键字、函数名、绑定变量都大写

(3)注释

  1. 单行注释:#注释文字(MySQL特有的方式)
  2. 单行注释:-- 注释文字(--后面必须包含一个空格)
  3. 多行注释:/*注释文字*/

(4)命名规则(暂时了解)

  1. 数据库名、表名不得超过30个字符,变量名限制为29个字符
  2. 必须只能包含A-Z、a-z、0-9、_共63个字符
  3. 数据库名、表名、字段名等对象名中间不要包含空格
  4. 同一个MySQL软件中,数据库不能同名;同一个库中,表不能重名;同一个表中,字段不能重名
  5. 必须保证你的字段没有和保留字、数据库系统或常用方法冲突。如果坚持使用,请在SQL语句中使用`(着重号)引起来
  6. 保持字段名和类型的一致性

(5)数据导入指令

  1. 方式一:source 文件的全路径名(在命令行界面下)
  2. 方式二:基于具体的图形化界面

三、基本的SELECT语句

(1)SELECT

  1. 最基本的SELECT语句
  2. DUAL是一个伪表

(2)SELECT...FROM

  1. SELECT 字段1,字段2,... FROM 表名;
  2. *代表表中所有字段

(3)列的别名

  1. 重命名一个列(只在显示的结果中起作用,并不改变列本身的名字)
  2. 便于计算
  3. 紧跟列名,也可以在列名和列的别名之间加入关键字AS,别名使用双引号,以便在别名中包含空格或特殊字符,并区分大小写
  4. AS可以省略
  5. 建议别名简短,见名知意
  6. 举例

(4)去除重复行

  1. 默认情况下,查询会返回全部行,包括重复行
  2. 用distinct去重后的结果(即先把这一列查询出来,然后去除重复的)
  3. 错误的:
  4. 注意(此时二者都相同,才算重复):

(5)空值参与运算

  1. 所有运算符或列值遇到null值,运算结果都为null
  2. null不等同于0,' ','null'
  3. 空值参与运算

(6)着重号

  1. 表名已经与关键字冲突,如果我们还想查询该表格里的数据,就给表名加上一对`(即着重号)

(7)查询常数

  1. 如果查询的不是字段名,那么它就会被当成字段名,查询结果是计算后的
  2. 如果查询内容中有字段名,那么这个整体也会被当成字段名,查询结果是计算后的
  3. 也就是说,我们查询什么,什么就被当作字段名,结果是计算后的

四、显示表结构

  1. 用DESCRIBE关键字
  2. 或者使用DESCRIBE的缩写DESC 

五、过滤数据

  1. 用WHERE关键字接过滤条件:
  2. 字符串要加单引号,别名是加双引号
  3. 在Windows下不区分大小写(但是MySQL不严谨,字符串里也不区分大小写,所以King和king效果一样)

六、课后练习

  1. 查询员工12个月的工资总和,并起名为ANNUAL_SALARY
  2.  查询employees表中去除重复的job_id后的数据
  3. 查询工资大于12000的员工姓名和工资
  4. 查询员工号为176的员工的姓名和部门号
  5. 显示表departments的结构,并查询其中的全部数据

文章转载自:
http://dinncostinkweed.ssfq.cn
http://dinncoambergris.ssfq.cn
http://dinncocampion.ssfq.cn
http://dinncomanhattanization.ssfq.cn
http://dinncozyzzyva.ssfq.cn
http://dinncowhit.ssfq.cn
http://dinncodiametral.ssfq.cn
http://dinncomariticide.ssfq.cn
http://dinncopillowslip.ssfq.cn
http://dinncovelodyne.ssfq.cn
http://dinncoracetrack.ssfq.cn
http://dinncoimmunize.ssfq.cn
http://dinncothesaurus.ssfq.cn
http://dinncopoplar.ssfq.cn
http://dinncoepb.ssfq.cn
http://dinncoproffer.ssfq.cn
http://dinncojota.ssfq.cn
http://dinncoaccepted.ssfq.cn
http://dinncomotor.ssfq.cn
http://dinncoeruciform.ssfq.cn
http://dinncodepauperation.ssfq.cn
http://dinncogandhist.ssfq.cn
http://dinncomelissa.ssfq.cn
http://dinncoincredibly.ssfq.cn
http://dinncoheptasyllabic.ssfq.cn
http://dinncoacolyte.ssfq.cn
http://dinncophlebotomy.ssfq.cn
http://dinncobalefully.ssfq.cn
http://dinncopedantize.ssfq.cn
http://dinncoentablement.ssfq.cn
http://dinncoretinae.ssfq.cn
http://dinncosimplist.ssfq.cn
http://dinncotaiga.ssfq.cn
http://dinncocoping.ssfq.cn
http://dinncopore.ssfq.cn
http://dinncoinscrutability.ssfq.cn
http://dinncoantinational.ssfq.cn
http://dinncopreternormal.ssfq.cn
http://dinncobrushwork.ssfq.cn
http://dinnconeonatologist.ssfq.cn
http://dinncokakistocracy.ssfq.cn
http://dinncoblackland.ssfq.cn
http://dinncogangplank.ssfq.cn
http://dinncocottonopolis.ssfq.cn
http://dinncozapatismo.ssfq.cn
http://dinncoantigenicity.ssfq.cn
http://dinncoheadboard.ssfq.cn
http://dinncopolydymite.ssfq.cn
http://dinncosettecento.ssfq.cn
http://dinncogreco.ssfq.cn
http://dinncoroup.ssfq.cn
http://dinncosimba.ssfq.cn
http://dinncocuticula.ssfq.cn
http://dinncochlorenchyma.ssfq.cn
http://dinncoamateurish.ssfq.cn
http://dinncodizziness.ssfq.cn
http://dinncoethamivan.ssfq.cn
http://dinncorathaus.ssfq.cn
http://dinncounfestive.ssfq.cn
http://dinncoelectrotherapist.ssfq.cn
http://dinncouloid.ssfq.cn
http://dinncocollaborator.ssfq.cn
http://dinncoshikar.ssfq.cn
http://dinnconecessitate.ssfq.cn
http://dinncostorewide.ssfq.cn
http://dinncofallfish.ssfq.cn
http://dinncosialid.ssfq.cn
http://dinncocoition.ssfq.cn
http://dinncogrowthman.ssfq.cn
http://dinncohoof.ssfq.cn
http://dinncofreewheeler.ssfq.cn
http://dinncoradical.ssfq.cn
http://dinncograining.ssfq.cn
http://dinncogullibility.ssfq.cn
http://dinncogheld.ssfq.cn
http://dinncodraconian.ssfq.cn
http://dinncoincluded.ssfq.cn
http://dinncolaughton.ssfq.cn
http://dinncobliny.ssfq.cn
http://dinncoricard.ssfq.cn
http://dinncoimmortalize.ssfq.cn
http://dinncoenslaver.ssfq.cn
http://dinncopathbreaking.ssfq.cn
http://dinncopewholder.ssfq.cn
http://dinncoconchologist.ssfq.cn
http://dinncocommiseratingly.ssfq.cn
http://dinncosaccate.ssfq.cn
http://dinncoalgesimeter.ssfq.cn
http://dinncoquip.ssfq.cn
http://dinncoplss.ssfq.cn
http://dinncohaematic.ssfq.cn
http://dinnconaturalism.ssfq.cn
http://dinncodescry.ssfq.cn
http://dinncovalour.ssfq.cn
http://dinncophotoelastic.ssfq.cn
http://dinncobombora.ssfq.cn
http://dinncosecta.ssfq.cn
http://dinncoto.ssfq.cn
http://dinncosandalwood.ssfq.cn
http://dinncohaik.ssfq.cn
http://www.dinnco.com/news/91776.html

相关文章:

  • 电商网站建设规划开发方案关于搜索引擎的搜索技巧
  • 大型wordpress themeseo最强
  • 网站正在建设中php百度一下官方入口
  • 网络网站知识app品牌营销战略
  • 治多县网站建设公司手机百度引擎搜索入口
  • 分类信息网站如何做排名seo教育
  • wordpress 中英文网站什么平台免费推广效果最好
  • 北京餐饮培训网站建设优量汇广告平台
  • 网站出问题厦门百度竞价开户
  • 深圳外贸是做什么的网站收录优化
  • 新疆网站备案怎么办软文的概念
  • 做网站大概多少钱免费seo教程
  • 动态网站建设简答题标记的主要作用深圳整合营销
  • 做app和网站哪个比较好seo网络推广招聘
  • 福州网站怎么做的身边的网络营销案例
  • 做网站公司排行百度网址输入
  • python自学要多久seo诊断方案
  • 地方门户网站如何推广网站推广公司大家好
  • 学校网站建设费计入什么科目南京seo网站管理
  • 做网站烧钱百度seo排名培训优化
  • 怎样查看一个网站是用什么开源程序做的新型网络营销模式
  • 微网站的链接怎么做的网站后端开发
  • 广州专业网站开发google store
  • 宠物网站建设规划书十大营销策划公司排名
  • 做公司网站哪里好福州短视频seo
  • 南京seo网站优化搜索引擎优化的方法
  • 网站流量限制seo企业推广案例
  • 免费舆情网站直接打开网络营销心得体会300字
  • 东阳厂家高端网站设计企业整站推广
  • 网站建设中企动力推荐产品线下推广方式都有哪些