![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
postgress
sunny-liang
不要后退不要怀疑自己勇敢向前
展开
-
POSTGRESQL和 MYSQL的自增字段比较
最近学习PGSQL。来比较一下他和MYSQL他们的自增字段的不同点。1、自增序列。MYSQL从最后一个ID自增。测试数据。1, I love this girl.2, I hate this girl.3, She is my girl.4, She is your girl.MYSQL:mysql> create database test;Query O转载 2012-12-13 14:25:47 · 573 阅读 · 0 评论 -
postGreSql
一、表的定义: 对于任何一种关系型数据库而言,表都是数据存储的最核心、最基础的对象单元。现在就让我们从这里起步吧。 1. 创建表: CREATE TABLE products ( product_no integer, name text, price numeric ); 2.转载 2012-12-14 15:44:55 · 383 阅读 · 0 评论