易截截图软件、单文件、免安装、纯绿色、仅160KB

MySQL schema命名规则

/*****************by
garcon1986************************************************************/
通用规则:

个数据库里的名字都尽量使用小写。这样能消除由于大小写(
case-sensitivity
)带来
的错误。
Mysql
默认区分大小写。
使
用下划线断开名字,名字中不能
使用空格。
名字中尽量不要
使
用数字。
名字中尽量不要
使用"
.",

样能避免在查询时出错

名字中不能使用保留字。

量使名字简单。
 
数据库名:

般情况下,使用项目名称作为数据库的名字。
数据库名字前加所有者的名字作为前缀。
 
表名:

以使用缩略词作为前缀
如:"
hr_”, "mkt_”,非别代表了human
resource, marketing部门。
不要使用通用的前缀
如:"
tbl_”,
"db_”,这样
没有实际意义,反而看起来更麻烦。
表名尽量简短,准确。

于表名的单复数,根据个人习惯决定,没有对错

 
列名:

键一般
是"
表名
_id”。

键的列名和另一个表的主键名一致

如:
create table manager
(manager_id int(11) primary key );
create table employee(
employee_id int(11) primary key,
manager_id int(11),
FOREIGN KEY (manager_id) REFERENCES
manager(manager_id) ON DELETE CASCADE)

名以
3
个字母的表格缩写为前缀

期列以"
date_”
为前缀
Boolean

型列以"
is_”
为前缀
引用:
MySQL database identifiers that can
be named include databases, tables, and columns. The MySQL documentation
contains extensive information about naming conventions. Here are some
of the naming conventions that you must use:
·        
All identifier names must be from 1 to 64
characters long, except for aliases, which can be 255 characters long.
·        
Database names must be unique. For each user
within a database, names of database objects must be unique across all
users (for example, if a database contains a department table created by
user A, no other user can create a department t


相关文档:

Linux安装apache、php和mysql方法

apache的源码安装 
将压缩包解压之后进入相应的目录
./configure \   #--------------------预编译命令
"--prefix=/usr/local/apache" \  #--------------------安装路径为“/usr/local/apache”
"--with-included-apr" \
"--enable-so" \ #--------------------开启相应的扩展模块 ......

php向MySQL插入数据不全 解决方法

今天为了一些已有数据导入MYSQL的数据库,我写了一个很简单的PHP程序。
程序思路很简单,就是读一条数据,然后往MYSQL里插入一条。
结果总是发现 每次导入只能导入2000条,就自动停止了,而且没有任何提示。
在网上搜解决方案各种搜不到。
刚开始怀疑是内存缓冲给少了,调了一下,还是不行。。
最后发现一个规律,就是 ......

JDBC连接MySQL程序_by 老大&stone

      学java,有着太多的疑问和不解,经历了无数似乎简单到问题解决后突然发现自己那么sx的地步,然而就我的感觉,对每个初学者来说都无法避免的要经过这个让人痛苦到恶心呕吐到到昏厥的地步;这也许正是java进阶之前所谓昨夜西风凋敝树般的必经之途吧!
     废话不多说了,下面 ......

Nginx + PHP + Mysql (php frm 방식)


Nginx + PHP + Mysql (php-frm 방식)

 글쓴이 :
최고관리자


조회 : 2,884  

......

Mysql Explain 详解

Mysql Explain 详解
转自ITPUBhttp://www.itpub.net/viewthread.php?tid=1034410&extra=page%3D1%26amp%3Bfilter%3Ddigest&page=1
一.语法
explain < table_name >
例如: explain select * from t3 where id=3952602;
二.explain输出解释
+----+-------------+-------+-------+-------------------+--- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号