[原创] Mysql中 Desc tables 中MUl解释
---官方的说明Key is MUL, multiple occurrences of a given value are allowed within the column. The column is the first column of a non-unique index or a unique-valued index that can contain NULL val...
[原创] mysql表字段多少限定
我们知道在Oracle中一个表上的字段最多只能有1000个,那么在mysql,一个表上能有多少个字段呢?今天在PUB上看到一个贴子(http://www.itpub.net/thread-1045069-1-1.html)于是查了下文档,没有发现相关说明.测试了一下,发...
Mysql Explain 详解 [原创]
一.语法explain < table_name >例如: explain select * from t3 where id=3952602;二.explain输出解释+----+-------------+-------+-------+-------------------+---------+---------+-------+------+-------+| ...
从全备份的SQL语句中恢复某张表 [原创]
今天有朋友问,如何从如何从全备份的SQL语句中恢复某张表,比如我我删除了一张表,我现在只想恢复这一张表.做以下测试,但结果不是很理想.目前认为,这样的恢复要分两种情况.1.要恢复的表在导出的时候是第一个被导出的...
[原创] sql mode与 enum 类型
1.sql mode简介 在Mysql中,sql mode可以用来解决以下问题(1).通过设置不同的sql mode,可以在不同严格程序进行数据校验.有效地保证了数据准确性.(2).通过设置sql mode为ANSI模式,来保证大多数SQL符合标...
ERROR 1193: Unknown system variable 'log_slow_queries'
[25 Oct 2007 12:02] Bugs System A patch for this bug has been committed. After review, it maybe pushed to the relevant source trees for release in the nextversion. You can access the patch from: ...
mysql安装记
网上有很多介绍mysql安装的文档,不过总感觉说得不够详细彻底,今天又有机会安装mysql了,现将步骤记之,希望对mysql初学者有所帮忙 (hehe,我就是一个地道的初学者)一.环境[root@TEST run]# cat /etc/redhat-release R...
Mysql中日期计算函数
Mysql中日期计算函数1.curdate() 求当前的日期mysql> select curdate();+------------+| curdate() |+------------+| 2008-03-11 | +------------+1 row in set (0.01 sec)2.now() 求当前日期和时间mysql...
测试mysql--load data
1.创建表 petmysql> create table pet (name varchar(20),owner varchar(20),species varchar(20),sex char(1),birth date,death date) ;Query OK, 0 rows affected (0.01 sec)mysql> desc pet;+---------+-------...
开始学习Mysql了
部门工作重新分配了,原来由SA同事管理的50多台Mysql,现在都要由DBA Team接管了.所以我也要开始学习mysql了,本来对这个一点不懂,希望自己能坚持下来,好好学习! ...