小编joe*_*joe的帖子

是否有任何工具可以从 ERD 到 DB 设计,反之亦然?

我正在学习数据库设计并寻找一些工具,最好是开源软件,可以帮助从 ERD 到数据库,反之亦然。

作为记录,我使用的数据库是 MySQL。

mysql schema erd tools database-design

5
推荐指数
1
解决办法
1757
查看次数

Oracle 中的日期格式

这个查询:

select to_char(sysdate, 'Ddspth MONTH, Yyyysp') from dual
Run Code Online (Sandbox Code Playgroud)

将返回:

Eighteenth MARCH , Two Thousand Fourteen
Run Code Online (Sandbox Code Playgroud)

我想知道是否有任何其他格式关键字允许包含诸如 "of" 、 "the" 之类的字符列表,以便获得如下输出:

"Today is the" Eighteenth "of" MARCH, Two Thousand Fourteen
Run Code Online (Sandbox Code Playgroud)

还是需要拆分日期转换并使用 concat 函数?谢谢

例如 :

select 'Today is the ' || to_char(sysdate, 'Ddspth') || ' of' || to_char(sysdate,' MONTH, Yyyysp') from dual
Run Code Online (Sandbox Code Playgroud)

oracle date-format date

4
推荐指数
1
解决办法
965
查看次数

如何在有关汽车服务场景的实体关系图中对实体进行建模?

我是一名初学者数据库设计师,想知道是否有人可以帮助我理解这一点。假设我们要设计一个系统,其中包含一个名为 Vehicle 的实体和另一个名为 Service 的实体。服务是维修/维护。

您如何看待以下关系的基数:

  • 一辆车可以维修多次。
  • 一项服务是为一辆车。

从汽车端来看,最小基数应该是 0 还是 1?

此外,服务涉及零件、人工和消耗品。

你会如何建模?作为一个独立的实体?或者在服务实体或汽车和服务之间的关系(交叉实体)的一部分?

erd database-design

2
推荐指数
1
解决办法
3509
查看次数

oracle如何修改默认日期格式

这里是 Oracle 的新手,我正在处理一些分配,但我注意到当我使用脚本创建表时,oracle 抛出以下错误:

ORA-01858: a non-numeric character was found where a numeric was expected
01858. 00000 -  "a non-numeric character was found where a numeric was expected"
*Cause:    The input data to be converted using a date format model was
       incorrect.  The input data did not contain a number where a number was
       required by the format model.
*Action:   Fix the input data or the date format model to make sure the
       elements match in number and type.  Then …
Run Code Online (Sandbox Code Playgroud)

oracle date-format errors date

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

database-design ×2

date ×2

date-format ×2

erd ×2

oracle ×2

errors ×1

mysql ×1

schema ×1

tools ×1