码迷,mamicode.com
首页 > 数据库 > 详细

MySQL函数名称笔记

时间:2015-09-28 22:13:36      阅读:303      评论:0      收藏:0      [点我收藏+]

标签:

$conn = mysql_connect();

process language;
no-process language;
/*

SQL
DDL define
DML mainpulate
DCL control
interacitve SQL
embeded SQL

SELECT user_name,age
FROM tbl_user
WHERE age>18
key words:
CREATE TABLE
DROP TABLE
ALTER TABLE
CREATE INDEX
DROP INDEX
CREATE PROCEDURE
DROP PROCEDURE

SELECT
INSERT
UPDATE
DELETE

GRANT
REVOKE

COMMIT
ROLLBACK
-----
2. Data type:
INT type:
TINYINT 1byte
SAMILLINT 2 bytes
MEDIUMINT 3 bytes
INT 4 bytes
BIGINT 8bytes

Real number type:
FLOAT 4 bytes
DOUBLE 8 bytes
DECIMAL(20,2)

String type: >80%
VARCHAR can change
CHAR length-unchanged
TEXT >> TINYTEXT TEXT MEDIUMTEXT LONGTEXT //charset
BLOB >> TINYBLOB BLOB MEDIUMBLOB LONGBLOB //binary
DATETIME 8 bytes
TIMESTAMP 1970-1-1 Gerorg time - 2938

Select data type standard:
1. minimize
2. simple
3. index not NULL
--------

3. Common operation
add delete edit search

apt-get: advancded-package-tools
update
install
remove
autoremove
purge
upgrade
source
check

MySQL函数名称笔记

标签:

原文地址:http://www.cnblogs.com/htmlphp/p/4844995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!