SQL Reserved Words Checker – SQL保留字查询

支持数据库:

SQL Server, MySQL, PostgreSQL, Oracle, DB2, ANSI SQL, ODBC

地址:http://www.petefreitag.com/tools/sql_reserved_words_checker/

演示: 

从简单词汇开始理解ERWin:Attribute, Entity, Logical Model, Physical Model, Domain, Cardinality

1. Attribute : [普] 属性, 品质, 特征

Represents[表现,描绘] a type of characteristic or property with a set of real or abstract things(People, Places, Events and so on);
个人理解: Attribute对应着数据库中的Column, 对应OOP中的Propertie

2. Entity: [普] 实体

An Entity represents a set of real or abstract things(People, Places, Event and so on) that have common attributes or characteristics.
个人理解: Entity对应着数据库中的Table, 在OOP端, 则对应着一个Class.

3. Logic [...]

MySQL中的连接 Join In MySQL

有两个表,如下:

mysql> SELECT * FROM Class; +———-+——–+ | Class_ID | Name   | +———-+——–+ |                1 | 2008A  | |                2 | 2008B  | |                3 | 2008C | +———-+——–+ 3 rows in set [...]

MySql中常用SQL语句总结

使用工具: phpMyAdmin, MySQLBroswer, 命令提示行[Windows下须将mysql目录中的bin添加到环境变量PATH中].

1. 连接的建立与退出:

mysql –u root –p 或登陆后直接选定某数据库 mysql –u root –p [数据库名称] 输入密码即可建立连接;

输入quit或exit即可关闭连接.

2. 数据库[DataBase]的建立与删除:

mysql>CREATE DATABASE School; mysql>DROP DATABASE School;

3. 表[Table]的增加, 修改与删除:

表的见 首先应选定某数据库: mysql>use School;

表的建立

然后建立一个班级表Class, 包含有班级ID, 非空, 自增, 为该表的主键; 班级名称 varchar(255); [...]