没有合适的资源?快使用搜索试试~ 我知道了~
mysql,oracle必备 DOS Cmd 导出mysql 数据库 mysqldump -u root -p cms >d:cms.dump mysqldump -u root -p cms >d:cms.sql 删除表取消外键 SET FOREIGN_KEY_CHECKS=0;
资源推荐
资源详情
资源评论
Mysql
DOS Cmd 导出 mysql 数据库
mysqldump -u root -p cms >d:cms.dump
mysqldump -u root -p cms >d:cms.sql
删除表取消外键
SET FOREIGN_KEY_CHECKS=0;
通过 mysql 命令修改:
修改数据库的字符集
mysql>use mydb
mysql>alter database mydb character set utf-8;
创建数据库指定数据库的字符集
mysql>create database mydb character set utf-8;
通过配置文件修改:
修改/var/lib/mysql/mydb/db.opt
default-character-set=latin1
default-collation=latin1_swedish_ci
为
default-character-set=utf8
default-collation=utf8_general_ci
重起 MySQL:
mysql> grant all privileges on *.* to 'root'@'192.168.1.112'
identified by '1';
mysql> grant select,delete,drop,update,create,insert on ordershop.*
to 'order'@'192.168.1.112' identified by '1';
mysql> FLUSH PRIVILEGES;
你好问候语
问候语 你好 !"#
$%&'
$"()*
+, !"#
SELECT * FROM tb_popedom WHERE createdate> '2013-01-25 17:13:29'
SELECT * FROM tb_popedom WHERE url LIKE "%staticCoreHtml_createIndex
%"
select * from account where regtime between '2009-02-01' and '2009-
03-03'
SELECT * FROM depart ORDER BY departid DESC;(默认 asc)
SELECT role.rolename,role.role_source FROM USER ,role, userrole
WHERE user.id=userrole.userid AND role.roleid=userrole.roleid AND
user.id=1
时间不为空按 id 降序分页
select * from account where regtime is not null order by id desc
limit 2, 2;
嵌套查询
select * from employee where laborage = (select max(laborage) from
employee)
select name,(select count(id) from category as c where c.parentid =
category.id)as 数量 from category where parentid = 1
select top 2 * from account where id not in(select top 2 id from
account order by id desc) order by id desc
select * from employee where laborage = (select max(laborage) from
employee)
select name,(select count(id) from category as c where c.parentid =
category.id)as 数量 from category where parentid = 1
聚合查询
select distinct laborage , name from employee
select count(*) from employee
select count(laborage) from employee
select count(distinct laborage) from employee
select sum(laborage) from employee
select sum(laborage) from employee where id != 5
select sum(laborage) / count(laborage) from employee
select avg(laborage) from employee
select sum(laborage),avg(laborage) from employee group by post
select sum(laborage),avg(laborage) from employee where laborage is
not null group by post
select sum(laborage),avg(laborage) from employee where laborage is
not null group by post order by post desc
select sum(laborage),avg(laborage) from employee where laborage is
not null group by post having post != 1 order by post desc
多表级联查询
select person.name,person.sex,idcard.cardno,idcard.povJ
from person inner join idcard on person.id = idcard.id
where person.sex = '男';
select person.name,person.sex,idcard.cardno,idcard.povJ
from person left outer join idcard on person.id = idcard.id;
select person.name,person.sex,idcard.cardno,idcard.povJ
from person right outer join idcard on person.id = idcard.id
select person.name
from person full join idcard on person.id = idcard.id
select d.departname , e.name , a.username
剩余7页未读,继续阅读
资源评论
最美逝夕阳
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 5 薪酬结构统计分析表(依据基本信息自动生成).xlsx
- 4 员工工资表-部门薪酬分析.xlsx
- 8 公司工程部人事薪酬分析.xlsx
- 13 公司人力资源薪酬工资统计表.xlsx
- 7 薪酬市场数据统计分析.xlsx
- 9 公司员工薪酬统计分析表.xlsx
- 10 财务分析员工薪酬统计表.xlsx
- 12 财务报表员工薪酬结算.xlsx
- 11 财务报表员工薪酬分析.xlsx
- 15 薪资情况分析表.xlsx
- 14 薪资筹划财务分析表.xlsx
- 18 财务汇报部门历年薪酬统计图表.xlsx
- 16 月度工资支出数据汇总图表.xlsx
- 17财务报告年度工资统计图表1.xlsx
- 20 工资表-部分统计-图表展示.xlsx
- 21 公司部门工资情况汇报图表模板.xlsx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功