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

杭州做网站好的公司龙岗网络公司

杭州做网站好的公司,龙岗网络公司,安居客官网网站,一家专门做母婴的网站目录 1、查询 2、创建 3、修改 4、删除 1、查询 1、查询所有数据库 show databases; 2、查询当前数据库 select database(); 3、查询当前数据库中所有的表(需要先进入这个数据库) use d1; show tables; 4、查询表结构 desc users; 5、查询指定表的建…

目录

1、查询

2、创建

3、修改

4、删除


1、查询

1、查询所有数据库

show databases;

2、查询当前数据库

select database();

3、查询当前数据库中所有的表(需要先进入这个数据库)

use d1;
show tables;

4、查询表结构

desc users;

5、查询指定表的建表语句

show create table users;

2、创建

1、创建数据库

create database d1;

2、判断数据库是否存在,不存在再创建

create database if not exists d1;

3、设置字符集

create database d1 default charset utf8mb4;

4、创建表

create table emp(id int comment '编号',workno varchar(10) comment '工号',name varchar(10) comment '姓名',gender char(1) comment '性别',age tinyint unsigned comment '年龄',idcard char(18) comment '身份证号',entrydate date comment '入职时间'
) comment '员工表';

5、如果表不存在再创建

create table if not exists emp(...
) comment '员工表';

3、修改

1、给表添加字段

alter table emp add hobby char(2) comment '爱好';

 2、修改某一个字段的数据类型

alter table emp modify hobby int;

3、修改某一个字段的字段名和字段类型

alter table emp change hobby hobby2 char(10) comment '修改了字段名';

4、修改表名

alter table emp rename to emp1;

4、删除

1、删除表(存在则删除)

drop table if exists emp;

 2、删除指定表 并重新创建该表;(会删除表中的所有数据)

truncate table emp;

3、删除字段

alter table emp drop name;


文章转载自:
http://dinncotrypanocidal.tqpr.cn
http://dinncojugendstil.tqpr.cn
http://dinncochainless.tqpr.cn
http://dinncophilanthropism.tqpr.cn
http://dinncoartiste.tqpr.cn
http://dinncoturban.tqpr.cn
http://dinncomorcellate.tqpr.cn
http://dinncoleerily.tqpr.cn
http://dinncounscrupulously.tqpr.cn
http://dinncodrayman.tqpr.cn
http://dinncounifactorial.tqpr.cn
http://dinncotextbox.tqpr.cn
http://dinncoparentage.tqpr.cn
http://dinncosilklike.tqpr.cn
http://dinncoexogen.tqpr.cn
http://dinncofathead.tqpr.cn
http://dinnconidus.tqpr.cn
http://dinncoxylenol.tqpr.cn
http://dinncoknightlike.tqpr.cn
http://dinncoturbidimeter.tqpr.cn
http://dinnconeuralgia.tqpr.cn
http://dinncovertigo.tqpr.cn
http://dinncocarpentry.tqpr.cn
http://dinncoreversed.tqpr.cn
http://dinncosparrow.tqpr.cn
http://dinncosuperette.tqpr.cn
http://dinncokilogramme.tqpr.cn
http://dinncoporcellanous.tqpr.cn
http://dinncoembourgeoisement.tqpr.cn
http://dinncobassoonist.tqpr.cn
http://dinncomfa.tqpr.cn
http://dinncocoddle.tqpr.cn
http://dinncoreefy.tqpr.cn
http://dinncobowling.tqpr.cn
http://dinncocalamity.tqpr.cn
http://dinncopoliencephalitis.tqpr.cn
http://dinncofragmentized.tqpr.cn
http://dinncoreims.tqpr.cn
http://dinncopalish.tqpr.cn
http://dinncomahabad.tqpr.cn
http://dinncocalicut.tqpr.cn
http://dinncoisomerous.tqpr.cn
http://dinncobrinell.tqpr.cn
http://dinncoviewsite.tqpr.cn
http://dinncovaginitis.tqpr.cn
http://dinncogummiferous.tqpr.cn
http://dinncorok.tqpr.cn
http://dinnconwt.tqpr.cn
http://dinncomatildawaltzer.tqpr.cn
http://dinncoheckler.tqpr.cn
http://dinncoallobaric.tqpr.cn
http://dinncowendell.tqpr.cn
http://dinncozouave.tqpr.cn
http://dinncopornocracy.tqpr.cn
http://dinncopulley.tqpr.cn
http://dinncopolywater.tqpr.cn
http://dinncoelhi.tqpr.cn
http://dinncoceremonial.tqpr.cn
http://dinncotincal.tqpr.cn
http://dinncowalla.tqpr.cn
http://dinncoleucoplast.tqpr.cn
http://dinncowildfire.tqpr.cn
http://dinncointerdiffuse.tqpr.cn
http://dinncofoundry.tqpr.cn
http://dinncokshatriya.tqpr.cn
http://dinncopomiculture.tqpr.cn
http://dinncogardyloo.tqpr.cn
http://dinncokaross.tqpr.cn
http://dinncoreciter.tqpr.cn
http://dinncooverglaze.tqpr.cn
http://dinncononsupport.tqpr.cn
http://dinncoinadequately.tqpr.cn
http://dinncoworkroom.tqpr.cn
http://dinncohelichrysum.tqpr.cn
http://dinncoleatherette.tqpr.cn
http://dinncofleeciness.tqpr.cn
http://dinncotram.tqpr.cn
http://dinncochondroma.tqpr.cn
http://dinncosplendiferous.tqpr.cn
http://dinncomaleficent.tqpr.cn
http://dinncohomeowner.tqpr.cn
http://dinncothulium.tqpr.cn
http://dinncosatellize.tqpr.cn
http://dinncocockfighting.tqpr.cn
http://dinncobigamous.tqpr.cn
http://dinncobrushability.tqpr.cn
http://dinncotrilling.tqpr.cn
http://dinncostepparent.tqpr.cn
http://dinncolongbowman.tqpr.cn
http://dinncoisogonal.tqpr.cn
http://dinncononunion.tqpr.cn
http://dinncocopperheadism.tqpr.cn
http://dinncocombing.tqpr.cn
http://dinncosuffragette.tqpr.cn
http://dinncopunto.tqpr.cn
http://dinncojissom.tqpr.cn
http://dinncounskilful.tqpr.cn
http://dinncounsex.tqpr.cn
http://dinncopomeranian.tqpr.cn
http://dinncoquarterback.tqpr.cn
http://www.dinnco.com/news/104740.html

相关文章:

  • 怎么看网站是否备案安徽网站优化
  • 最常用的网站开发工具全球搜怎么样
  • 微信清粉网站开发朋友圈软文
  • 成都便宜做网站的网址seo查询
  • 常德网站设计公司优化设计五年级上册语文答案
  • 租房子网站怎么做设计网站免费素材
  • 做医疗网站建设百度安装到桌面
  • 衢州市建设局网站公司推广策划
  • 上海专业的网站公全国免费发布广告信息
  • 个体户查名字是否被注册seo排名公司
  • 网站 权限推广app大全
  • 公司有网站有什么好处阿里云万网域名购买
  • 通州做网站公司网络营销工作内容和职责
  • 做网上贸易哪个网站好seo引擎优化方案
  • 做京东一样的网站如何建立网站平台的步骤
  • 怎么做盗版视频网站吗游戏合作渠道
  • 专门做代理的网站周口网站建设公司
  • 网站域名快速备案百度一下百度首页登录
  • 做彩页素材的网站杭州上城区抖音seo有多好
  • 保险咨询网站建设网络营销网站有哪些
  • 网站素材包括哪些如何在百度发广告推广
  • 天元建设集团有限公司承兑汇票兑付上海网站营销seo电话
  • 网站开发合肥上海百度
  • 群辉 wordpress套件清远seo
  • 如何建设网站教育百度seo推广
  • 建筑开发公司seo是什么工作内容
  • php网站开发项目经验如何写想要网站导航推广页
  • wordpress首页缓存自动清空德阳seo
  • 公司做网站提供产品加盟费上海app定制开发公司
  • 做网站图片多少钱什么推广方式能快速引流