数据库
along1985
这个作者很懒,什么都没留下…
展开
-
mysql中data too long for column问题的解决方法
这个问题是不能输入中文造成的 1、将MySQL安装目录下的my.ini文件中的字符集配置如下 [mysql] default-character-set=gbk [mysqld] default-character-set=utf8 注意是utf8 不是utf-8,否则mysql启动失败 2、用utf8编码方式建库 CREATE DATABASE IF NOT...2012-07-20 09:27:41 · 571 阅读 · 0 评论 -
oracle 笔记
oracle decode DECODE的语法:DECODE(value,if1,then1,if2,then2,if3,then3,...,else),表示如果value 等于if1时,DECODE函数的结果返回then1,...,如果不等于任何一个if值,则返回else。 NVL( string1, replace_with) 功能:如果string1为NULL,则NVL函数返回...原创 2012-07-24 15:14:04 · 62 阅读 · 0 评论 -
oracle常用语句
1、添加外键 alter table THDBA.BUYING drop constraint FK_BUYING_REFERENCE_USER_INF; alter table THDBA.BUYING add constraint FK_BUYING_REFERENCE_USER_INF foreign key (CUST_ID) ...原创 2012-11-09 13:09:32 · 104 阅读 · 0 评论 -
MySQL常用语句
1、建库语句 CREATE DATABASE IF NOT EXISTS mydbname default charset utf8 COLLATE utf8_general_ci; 2、建表语句 -- -- make by kakane -- DROP TABLE IF EXISTS `workers_info`; CREATE TABLE `worker...原创 2012-10-05 09:27:37 · 57 阅读 · 0 评论