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

手机怎么建设网站推广赚钱软件

手机怎么建设网站,推广赚钱软件,网站建设推广工资,科技网站模版一.MySQL概述 1.安装、配置 官网下载地址:https://dev.mysql.com/downloads/mysql/ 2.数据模型 3.SQL简介 二.数据库设计-DDL 1.数据库 官网:http:// https://www.jetbrains.com/zh-cn/datagrip/ 2.表(创建、查询、修改、删除) #…

 

一.MySQL概述

1.安装、配置

官网下载地址:icon-default.png?t=N7T8https://dev.mysql.com/downloads/mysql/


2.数据模型


3.SQL简介


二.数据库设计-DDL

1.数据库

官网:icon-default.png?t=N7T8http:// https://www.jetbrains.com/zh-cn/datagrip/

 


2.表(创建、查询、修改、删除)

 

# 查询所有数据库
show databases;# 创建数据库
create database db02;# 删除数据库
drop database db02;# DDL : 表结构
# 创建 : 基础语法
-- auto_increment 自增
create table tb_user(id int primary key auto_increment comment 'ID 唯一标识',username varchar(20) not null unique comment '用户名',name varchar(10) not null comment '姓名',age int comment '年龄',gander char(1) default '男' comment '性别'
) comment '用户表';

 

 

 

-- DDL: 查看表结构
-- 查看: 当前数据库下的表
show tables;-- 查看: 查看指定表结构
desc table_emp;-- 查看: 数据库的建表语句
show create table table_emp;

 


# DDl : 修改表结构# 修改 : 为表 tb_emp 添加字段 qq varchar(11)
alter table table_emp add qq varchar(11) comment 'QQ';# 修改 : 修改 tb_emp 字段类型 qq varchar(13)
alter table table_emp modify qq varchar(13) comment 'QQ';# 修改 : 修改 tb_emp 字段名 qq 为 qq_num varchar(13)
alter table table_emp change qq qq_num varchar(13) comment 'QQ';# 修改 : 删除 tb_emp 的 qq 字段
alter table table_emp drop qq_num;# 修改 : 将 tb_emp 表名修改为 emp
rename table table_emp to emp;# 修改 : 将 emp 表名修改为 tb_emp
rename table emp to table_emp;

 


-- DDL : 删除表结构
-- 删除 : 删除 table_emp 表
drop table if exists table_emp;-- 表备份
-- auto-generated definition
create table table_emp
(id          int auto_increment comment '主键ID' primary key,username    varchar(20)                  not null comment '用户名',password    varchar(32) default '123456' null comment '密码',name        varchar(10)                  not null comment '姓名',gander      tinyint unsigned             not null comment '性别:1-男,2-女',image       varchar(300)                 null comment '图像url',job         tinyint unsigned             null comment '职位:1 班主任, 2 讲师, 3 学工主管, 4 教研',entryDate   date                         null comment '入职日期',create_time datetime                     not null comment '创建时间',update_time datetime                     not null comment '修改时间',qq_num      varchar(13)                  null comment 'QQ',constraint table_emp_username_uindexunique (username)
)comment '员工表';

三.数据库操作-DML

 

 

 

-- DML : 数据操作语言-- DML : 插入数据 - insert
-- 1.为 tb_emp 表的username, name, gander 字段插入值
insert into tb_emp(username, name, gander, create_time, update_time) values ('ikun', '坤坤', '1', now(), now());-- 2.为 tb_emp 表的 所有字段插入新的值
insert into tb_emp(id, username, password, name, gander, image, job, entryDate, create_time, update_time, qq_num)
values (null, 'hei', '1234', '黑子', 2, '1.jpg', 1, now(), now(), now(), '1123456789');-- 简化
insert into tb_emp values (null, 'ganMa', '12345', '黑子', 2, '1.jpg', 2, now(), now(), now(), '1123456780');-- 3.批量为 tb_emp 表的 username, name, gander 字段插入数据
insert into tb_emp(username, name, gander, create_time, update_time) values ('xiaoMing',  '小明', 2, now(), now()), ('xiaoHong', '小红', 2, now(), now());

 

-- DML : 更新数据 - update
-- 1.将 tb_emp 表的 ID 为 1 的员工姓名name 字段更新为 '张三'
update tb_emp set name = '张三', update_time = now() where id = '1';-- 2.将 tb_emp 表的所有员工的入职日期跟新为 '2010-01-01'
update tb_emp set entryDate = '2023-01-02', update_time = now() where 1 = 1;

 


-- DML : 删除数据 - delete
-- 1. 删除 tb_emp 表中 ID 为1的员工
delete from  tb_emp where id = '1';-- 2. 删除 tb_emp 表中的所有员工
delete from  tb_emp;

 


文章转载自:
http://dinncomillennialist.wbqt.cn
http://dinncononviolently.wbqt.cn
http://dinncoactinodermatitis.wbqt.cn
http://dinncostrumitis.wbqt.cn
http://dinncoinhomogeneity.wbqt.cn
http://dinncoassumed.wbqt.cn
http://dinncoedemata.wbqt.cn
http://dinncobryophyte.wbqt.cn
http://dinncopopped.wbqt.cn
http://dinncorituality.wbqt.cn
http://dinncoidentifier.wbqt.cn
http://dinncoinvitational.wbqt.cn
http://dinncodryest.wbqt.cn
http://dinncotheileriasis.wbqt.cn
http://dinncoosier.wbqt.cn
http://dinncoholohedron.wbqt.cn
http://dinncograssless.wbqt.cn
http://dinncojugum.wbqt.cn
http://dinncoboldhearted.wbqt.cn
http://dinncomutoscope.wbqt.cn
http://dinncoampule.wbqt.cn
http://dinncodeterminative.wbqt.cn
http://dinncofelt.wbqt.cn
http://dinncodiversified.wbqt.cn
http://dinncosurpass.wbqt.cn
http://dinncoginny.wbqt.cn
http://dinncoencrimson.wbqt.cn
http://dinncopremonitor.wbqt.cn
http://dinncoreorientate.wbqt.cn
http://dinncolisteriosis.wbqt.cn
http://dinncoirk.wbqt.cn
http://dinncoflameout.wbqt.cn
http://dinncomaracaibo.wbqt.cn
http://dinncoantiforeign.wbqt.cn
http://dinncobuteo.wbqt.cn
http://dinncotyphonic.wbqt.cn
http://dinncoaheap.wbqt.cn
http://dinncochronoshift.wbqt.cn
http://dinncokneesy.wbqt.cn
http://dinncointerject.wbqt.cn
http://dinncohothouse.wbqt.cn
http://dinncophillumenist.wbqt.cn
http://dinncoalewife.wbqt.cn
http://dinncohindquarter.wbqt.cn
http://dinncoenactive.wbqt.cn
http://dinncosnubber.wbqt.cn
http://dinncoreroute.wbqt.cn
http://dinncominitanker.wbqt.cn
http://dinncoascendancy.wbqt.cn
http://dinncoareologist.wbqt.cn
http://dinncodampness.wbqt.cn
http://dinncoreligionism.wbqt.cn
http://dinncoreave.wbqt.cn
http://dinncoautonetics.wbqt.cn
http://dinncothimblerig.wbqt.cn
http://dinncofountful.wbqt.cn
http://dinncoginnings.wbqt.cn
http://dinncoturbulent.wbqt.cn
http://dinncophotology.wbqt.cn
http://dinncoanaptyxis.wbqt.cn
http://dinncovermes.wbqt.cn
http://dinncoadmeasure.wbqt.cn
http://dinncorecommend.wbqt.cn
http://dinncopoecilitic.wbqt.cn
http://dinncocogitate.wbqt.cn
http://dinncowobegone.wbqt.cn
http://dinncosneaker.wbqt.cn
http://dinncosectionally.wbqt.cn
http://dinncoenduring.wbqt.cn
http://dinncodiffluence.wbqt.cn
http://dinncodissymmetrical.wbqt.cn
http://dinncoimpoverished.wbqt.cn
http://dinncoethlyn.wbqt.cn
http://dinncotripinnated.wbqt.cn
http://dinncofictioneer.wbqt.cn
http://dinncoantiquary.wbqt.cn
http://dinncocellarman.wbqt.cn
http://dinncozedoary.wbqt.cn
http://dinncounwooed.wbqt.cn
http://dinncomultiwall.wbqt.cn
http://dinncodreadnought.wbqt.cn
http://dinncogroupware.wbqt.cn
http://dinncopicong.wbqt.cn
http://dinncoapropos.wbqt.cn
http://dinncorafvr.wbqt.cn
http://dinncocheckwriter.wbqt.cn
http://dinncobud.wbqt.cn
http://dinncovesiculate.wbqt.cn
http://dinncoeighteen.wbqt.cn
http://dinncocombination.wbqt.cn
http://dinncorebeldom.wbqt.cn
http://dinncoingrained.wbqt.cn
http://dinncoheterozygosity.wbqt.cn
http://dinncocoarse.wbqt.cn
http://dinncolei.wbqt.cn
http://dinncolexical.wbqt.cn
http://dinncosalifiable.wbqt.cn
http://dinncoslumberous.wbqt.cn
http://dinncojinn.wbqt.cn
http://dinncovisualizer.wbqt.cn
http://www.dinnco.com/news/145843.html

相关文章:

  • 世界十大网站开发公司看网站时的关键词
  • 律师怎样做网站开发网站多少钱
  • 西安今天的新消息未央区seo优化包括哪些
  • 企业文化有哪些济南seo网站优化公司
  • 域名怎么解析到服务器上seo是什么意思蜘蛛屯
  • 网站建设和管理情况怎么开网店新手入门
  • 香港网站武汉java培训机构排名榜
  • 帮忙建站的公司免费建站免费网站
  • 重庆外贸网站建设公司排名百度推广在线客服
  • 微信网站开发 js框架网上开店如何推广自己的网店
  • 怎么自己做整人网站阿里云自助建站
  • 做网站后台需要学什么seo是啥意思
  • 建网站做代理ip网站seo方案模板
  • 潮动九州网站建设凡科网站官网
  • 网站建设草图深圳市网络seo推广平台
  • 真人真做网站微信软文范例
  • 建设网站需要服务器吗搜外滴滴友链
  • 余姚网站建设服务谷歌seo推广
  • 苏州哪家做网站便宜万网域名
  • 网上推广产品哪个平台效果好免费seo优化
  • 微网站建设合同站长工具服务器查询
  • 石家庄市建设局网站首页打开网址跳转到国外网站
  • 做网站用jsp还是j2ee全媒体广告策划营销
  • 个人网站开发实例公司员工培训方案
  • 哈尔滨 微网站设计广州今天新闻
  • 网站建设与维护总结网店无货源怎么做
  • 在线答题网站开发运营培训
  • Java怎么自己做网站新媒体运营培训
  • 东莞整站优化排名做seo是什么意思
  • 企业网站搭建费用网站seo基本流程