mysql 命令使用
mysql 命令学习:
1. mysql -uroot ;
2.mysql -h ip -ubusiusr -pbusiusr newdrmdb;
3.show databases ; //显示所有的数据库 ;
4.show tables ; //显示所有的表 ;
5.set names gbk ; //设置字符集 ;
6.desc tmonthfees201004 ; //显示表结构 ;
7.alter table tcontents change cVersion cVersion varchar(128) null ; //修改mysql表中字段的属性 ;
8. show index from tcontents from newdrmdb;
show index from newdrmdb.tcontents ;
show keys from tcontents ;
show indexes from tcontents ; //查看表的索引 ;
相关文档:
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Li ......
你使用过别人的备份方案来备份你的MySQL数据吗?你有多关心你的数据?你敢确定你现在正在运行的脚本就是可靠的,可恢复的备份,而且在运行过程中不会影响你的关键作业吗?在回答这个问题之前,先回答下面十个问题吧:
1. 备份要求停止数据库吗?如果不需要,那么备份的时候会影响什么?块设备?I/O负载?缓冲?或者是其他?
......
推广地点表promotion_addr字段:name,id
电话报竣表unicom_record字段:date, sheet_id(关联sheet表id)
报单表sheet字段:id,promotion_addr_id(关联promotion_addr表id)
要求统计某个月已报竣各推广地点的推广个数;
SELECT
p.name, count(*)
from
unicom_record AS ur
Left Join sheet AS s ON ur.sheet_id ......
自增长类型增加
1.如果dbms是MsSql,则选定表后,database-> edit current dbms-> 出现DBMS properties对话框,选择General页,左侧的树选择SQL 2000-> Profile-> Column-> Extended Attributes 下面的ExtIdentityIncrement是步进 ......