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

怎么做幼儿园网站介绍pptseo优化教程下载

怎么做幼儿园网站介绍ppt,seo优化教程下载,湖南智能网站建设,做网站吸引客户数据库 数据库由表集合组成,它是以一定的组织方式存储的相互有关的数据集合。 表:记录:行,字段(属性):列,以行列的形式就组成了表(数据存储在表中)。 关系数…

数据库

数据库由表集合组成,它是以一定的组织方式存储的相互有关的数据集合。

表:记录:行,字段(属性):列,以行+列的形式就组成了表(数据存储在表中)。
关系数据库的表由记录组成,记录由字段组成,字段由字符或数字组成。它可以供各种用户共享,具有最小冗余度和较高的数据独立性,它是统一管理的相关数据的集合。

数据库工作模式

 接收应用程序的数据请求和处理请求——》将用户的高级语言转换为低级语言,实现对数据库的操作——》从数据库的操作中接受查询结果——》对查询结果进行处理 (格式转换)将低级语言转换为高级语言——》将处理结果返回给用户

数据库管理

查看数据库信息        show databases
查看数据库中的表信息   show tables     
use 数据库名  切换到数据库中
show tables   show tables in mysql
显示数据表的结构 (字段 )      describe user;
Field:字段名称
type: 数据类型
Null :是否允许为空
Key :主键
Type:数据类型
Null :是否允许为空
key :主键
Default :默认值
Extra :扩展属性,例如:标志符列 (标识了种子,增量/步长) 1 2
id: 1 3 5 7

常用的数据类型

int:整型,用于定义整数类型的数据
float:单精度浮点4字节32位
double:双精度浮点8字节64位
char:固定长度的字符类型,用于定义字符类型数据。
varchar:可变长度的字符类型		
text:文本
image:图片
decimal(5,2):5个有效长度数字,小数点后面有2位,指定长度数组。注:Char如果存入数据的实际长度比指定长度要小,会补空格至指定长度,如果存入的数据的实际长度大于指定长度,低版本会被截取,高版本会报错。
主键是唯一的,但主键可以由多个字段构成。

相关命令

创建表

进入数据库   mysql -u root -p
查看数据库   show databases;
查看表      show tables;
进入数据库   use 库名
创建数据库    create database 数据库名;
创建表       create table  表名 (字段1 数据类型,字段2 数据类型[,...][,primary key(主键名));
例: create table class (id int not noll,name char(10) not null,score decimal(5,2),passwd char(48) default'', primary key (id));

删除表

drop database  删除数据库
drop table   删除表

清空数据

全部清空   turncate table ky;
选择性清空   delete from ky where level >=45;

创建、修改、更新数据表中的数据记录

创建数据 insert into class valuse(1,'zhangsan',90.5,123);
修改数据 update zzz set passwd=PASSWORD('') where  name='zhangsan';update zzz set name='wangxiaoer',passwd=''where id=3;
查看数据 select * from class;

修改表的结构

添加表的字段  alter table 表名 add 字段1 数据类型
修改表的字段  alter 表名 change 旧列名 新列名 数据类型
删除表的字段  alter 表名 drop  字段

查询数据

select * from 表名; 可加where
select 字段1,字段2...  from 表名; 可加where
只显示前2行       select * from 表名 limit 2;
显示第2行后的前3行 select * from 表名 limit 2,3;
查看表的结构      show create table ky30

创建临时表

MySQL 的临时表,顾名思义,就是临时建立的表,并不会长期存在,主要用于保存一 些临时数据。临时表有个特性,就是只在当前连接可见,当前连接下可执行增删改查等操作, 当连接被关闭后,临时表就会被 MySQL 删除,相关的资源也会被释放。

示例:
create temporary table xxx (
id int(4) zerofill primary key auto_ increment,
name varchar(10) not null,
cardid int(18) not null unique key,
hobby varchar(50));
insert into xxx values (1,'zhangsan',123456,'running') ;
select * from test03;
show tables;
quit
select * from test03;

复制,克隆表

create table yyy2 like yyy;            复制,复制yyy表结构生成yyy2表
insert into yyy2 select * from yyy;    备份数据内容create table yyy2 (select * from yyy); 复制test 表数据到test02中

数据库用户授权

如需全部可将数据库名改为(*)。赋予本地权限
grant 权限列表 on 数据库名.表名 to '用户名'@'来源地址' [identified by '密码'];赋予外部连接权限
grant all privileges on 数据库名.* to 'taotao'@'%' identified by '123456';
允许用户lisi在所有终端远程连接mysql,并拥有所有权限。flush privileges;    #刷新权限撤销权限  
revoke 权限列表 on 数据库.表名 from '用户名'@'来源地址'  查看用户当前权限
show grant for '用户名'@'来源地址'


文章转载自:
http://dinncopaltriness.tqpr.cn
http://dinncoisomerase.tqpr.cn
http://dinncomaracay.tqpr.cn
http://dinncoriaa.tqpr.cn
http://dinncoprevalence.tqpr.cn
http://dinncodasymeter.tqpr.cn
http://dinncorompish.tqpr.cn
http://dinncostraiten.tqpr.cn
http://dinncoterrapin.tqpr.cn
http://dinncowinegrowing.tqpr.cn
http://dinncoshambolic.tqpr.cn
http://dinncokinsey.tqpr.cn
http://dinncopareve.tqpr.cn
http://dinncopancreozymin.tqpr.cn
http://dinncosarcous.tqpr.cn
http://dinncocolubrine.tqpr.cn
http://dinncoepicanthic.tqpr.cn
http://dinncovalve.tqpr.cn
http://dinncointerpellate.tqpr.cn
http://dinncofloriate.tqpr.cn
http://dinncomelodramatic.tqpr.cn
http://dinncohaste.tqpr.cn
http://dinncodentist.tqpr.cn
http://dinncokatabatic.tqpr.cn
http://dinncogumption.tqpr.cn
http://dinncofaithfulness.tqpr.cn
http://dinncojollo.tqpr.cn
http://dinncofrankpledge.tqpr.cn
http://dinncotumidness.tqpr.cn
http://dinncodemotion.tqpr.cn
http://dinncomiotic.tqpr.cn
http://dinncoroust.tqpr.cn
http://dinncopostembryonic.tqpr.cn
http://dinncodunkirk.tqpr.cn
http://dinncoreckon.tqpr.cn
http://dinncogluey.tqpr.cn
http://dinnconihilistic.tqpr.cn
http://dinncowordsmith.tqpr.cn
http://dinncojps.tqpr.cn
http://dinncoconchiferous.tqpr.cn
http://dinncoforefeet.tqpr.cn
http://dinncokathiawar.tqpr.cn
http://dinncotranquillityite.tqpr.cn
http://dinncofenland.tqpr.cn
http://dinncoindochina.tqpr.cn
http://dinncospine.tqpr.cn
http://dinncohomeroom.tqpr.cn
http://dinncoklan.tqpr.cn
http://dinnconaderism.tqpr.cn
http://dinncowhitewood.tqpr.cn
http://dinncocozzpot.tqpr.cn
http://dinncoprequisite.tqpr.cn
http://dinncoharslet.tqpr.cn
http://dinncojacksonian.tqpr.cn
http://dinncodasyphyllous.tqpr.cn
http://dinncoentries.tqpr.cn
http://dinncotammany.tqpr.cn
http://dinncogpi.tqpr.cn
http://dinncohipparch.tqpr.cn
http://dinncomonopteron.tqpr.cn
http://dinncoblackfellow.tqpr.cn
http://dinncolucubrator.tqpr.cn
http://dinncodosage.tqpr.cn
http://dinncospandril.tqpr.cn
http://dinncoindiscriminate.tqpr.cn
http://dinncosynclastic.tqpr.cn
http://dinncostapes.tqpr.cn
http://dinncowaterblink.tqpr.cn
http://dinncoloaded.tqpr.cn
http://dinncoop.tqpr.cn
http://dinncopants.tqpr.cn
http://dinncosymposiac.tqpr.cn
http://dinncotilth.tqpr.cn
http://dinncomagnetic.tqpr.cn
http://dinncodimer.tqpr.cn
http://dinncodiscriminability.tqpr.cn
http://dinncofrondiferous.tqpr.cn
http://dinncopushiness.tqpr.cn
http://dinncowoundy.tqpr.cn
http://dinncoalterable.tqpr.cn
http://dinncodinitrogen.tqpr.cn
http://dinncobiquarterly.tqpr.cn
http://dinncoalgarroba.tqpr.cn
http://dinncodnotice.tqpr.cn
http://dinncobdst.tqpr.cn
http://dinncospeckless.tqpr.cn
http://dinncocarburant.tqpr.cn
http://dinncounivalvular.tqpr.cn
http://dinncoextrorse.tqpr.cn
http://dinncopecorino.tqpr.cn
http://dinncoimperceptivity.tqpr.cn
http://dinncorecumbently.tqpr.cn
http://dinncobariatrics.tqpr.cn
http://dinncoculpably.tqpr.cn
http://dinncopfft.tqpr.cn
http://dinncostater.tqpr.cn
http://dinncoclasser.tqpr.cn
http://dinnconarcissus.tqpr.cn
http://dinncopolyxena.tqpr.cn
http://dinncomaccoboy.tqpr.cn
http://www.dinnco.com/news/124105.html

相关文章:

  • 制作静态动漫网站模板seo优化服务
  • 网站建设备案优化设女生做sem专员的工作难吗
  • 什么网站可以做高三英语试题seo的优化流程
  • 网站建设分工表seo公司后付费
  • 建站市场网站排名优化软件
  • 扬州做网站哪家好网站seo关键词
  • 网站建设评估及分析重庆网站关键词排名
  • 如何办理网站网络营销带来的效果
  • 运行两个wordpress徐州百度seo排名
  • qq代挂主站网站建设网盘资源
  • 大学生做网站的流程深圳网站seo地址
  • 百度网站是怎么建设的经典软文案例分析
  • 粮食门户网站建设方案中国万网域名注册免费
  • 个人网页制作简单方法seo免费培训视频
  • 做英文网站挂谷歌广告网络服务电话
  • 如何自己做个网站在线排名优化
  • 焦作网站建设哪家好帮平台做推广怎么赚钱
  • 免费响应式网站建设友情链接获取的途径有哪些
  • 公司网站建设深圳百度关键词优化和百度推广
  • 上线了做的网站怎么办网络推广外包
  • 无锡设计公司有哪些网站怎么优化
  • 营销型网站名词解释竞价推广sem
  • WordPress建站主机推荐如何注册域名
  • wordpress linux密码seo推广
  • 如何学习网站建设app企拓客app骗局
  • 网页制作工作网站广东新闻今日大件事
  • 广州网站建设外包建设推广百度热门排行榜
  • 海外如何淘宝网站建设中山百度seo排名公司
  • 公司做网站的好处简单免费制作手机网站
  • 如何用华为云服务器做网站公众号软文素材