Postgresql 浅入
创建table
創建datebase test
CREATE DATEBASE <test>;刪除database test
DROP DATEBASE <test>;創建table test;
CREATE TABLE <table_name>;刪除table preson;
DROP TABLE preson;創建表名/表內容;
CREATE TABLE person1 (
id BIGSERIAL not null primary key,
first_name VARCHAR(50) not null,
last_name VARCHAR(50) not null,
gender VARCHAR(50) not null,
date_of_birth date not null,
email VARCHAR(150)
);
創建表內容;
查看表
查看表内容
用法
升序/降序 ASC/DESC
DISTINCT 去重
Where 查找
Comparison Operators
limit & offset & IN
Between & Like
Group
count(*) 计数
group by having
Adding New Table And Data Using Mockaroo
Input table 导入表
MAX & MIN & AVG & SUM & ROUND()
运算
列
含义
NOW()
Last updated