存档

‘数据库’ 分类的存档

powerdesigner 数据类型

2010年4月15日 逝去的风 没有评论

powerdesigner 12.5 数据类型

下面是powerdesigner 12.5 提供的一些数据类型
在帮助文档就有此处放出来,
主要是为了查看方便
表格的形式很不错。。。。

Numeric data types 

The following numeric data types are available: 阅读全文...

powerdesigner 列名不允许重复时的解决办法

2010年4月15日 逝去的风 没有评论

使用 powerdesigner 时,当你创建两个表实体时(说的是CDM概念视图),假设你让每个实体的主键都命名为 id,则powerdesigner禁止如此做。 也就是说 code 这一列是不允许重复的, 下面就给出解决方案。

阅读全文…

分类: 数据库 标签:

mysql TIMESTAMP 不能为NULL

2010年3月29日 逝去的风 2 条评论

由于开发过程中一直使用oracle,而现在使用mysql开发时,遇到了一个小问题。
创建的一张表中,有一个字段类型是 TIMESTAMP ,我想将此字段设置为允许为NULL值的,但是总是失败,这个字段就是不能含有NULL值。

阅读全文…

case when then else end

2010年3月25日 逝去的风 没有评论

SELECT * FROM table WHERE table_id = CASE WHEN (1 = 1) THEN 1 ELSE 0 END

经测试:在oracle9i ,sqlserver2005及 mysql5上运行正常。

分类: 数据库 标签:

powerdesigner 小记

2010年3月24日 逝去的风 没有评论

1、设置主键自增
在PDM中,选择 I 这个选项,也就是 Identify的选择框

分类: 数据库 标签:

mysql 相关问题

2010年3月24日 逝去的风 没有评论

1、source命令 导入.sql文件时,中文乱码 或者是注释乱码
首先查看你的mysql数据库编码
如下命令
mysql> show variables like “character\_set\_database”;
+————————+——-+
| Variable_name | Value |
+————————+——-+
| character_set_database | utf8 |
+————————+——-+
1 row in set (0.00 sec)

阅读全文…

分类: mysql 标签:

mysql 参考手册

2009年11月16日 逝去的风 没有评论

mysql5.1参考手册

http://dev.mysql.com/doc/refman/5.1/en/show-columns.html

The Key field indicates whether the column is indexed:
If Key is empty, the column either is not indexed or is indexed only as a secondary column in a multiple-column, non-unique index.
If Key is PRI, the column is a PRIMARY KEY or is one of the columns in a multiple-column PRIMARY KEY.
If Key is UNI, the column is the first column of a unique-valued index that cannot contain NULL values.
If Key is MUL, multiple occurrences of a given value are allowed within the column.

阅读全文…

分类: mysql 标签:

树形数据结构 数据库处理

2009年11月12日 逝去的风 没有评论

hibernate blog给的引用
http://www.dbazine.com/oracle/or-articles/tropashko4

javaeye的讨论
http://www.javaeye.com/topic/3903?page=3

阅读全文…

分类: 数据库 标签:

mysql安装问题 The security setting could not be applied to the database 解决办法

2009年11月2日 逝去的风 没有评论

相信有朋友遇到过这个问题,特别是不是第一次安装mysql的朋友。
说明:我所说的都是在windowsXP系统下的mysql问题

问题描述一般是
“The security setting could not be applied to the database because the connection has
failed with the following error”

阅读全文…