Learn how to create a table using the most widely-used data types (serial, varchar, integer, float, boolean, and date), and the most necessary constraints (NOT NULL and primary key).

CREATE TABLE directors (
id SERIAL PRIMARY KEY,
name VARCHAR() UNIQUE NOT NULL
); CREATE TABLE movies (
id SERIAL PRIMARY KEY,
title VARCHAR() NOT NULL,
release_date DATE,
count_stars INTEGER,
director_id INTEGER
);

最新文章

  1. C++运算符重载
  2. SVG简介
  3. 让dwz 在td里显示图片
  4. bitbucket和Mercurial安装和相关
  5. 使用 layoutopt 进行布局优化
  6. Unix时间戳(Unix timestamp)转换工具
  7. Duilib将UI资源文件打包到exe教程
  8. Codeforces Gym 100015C City Driving 离线LCA
  9. 如何设置 font-family 比较好以及字体的中英文名
  10. ssanf()的用法
  11. C++零食:使用Unicode版的预定义宏__FUNCTION__
  12. asp.net core mvc实现伪静态功能
  13. Redhat
  14. Android 组件化/模块化之路——在展示层搭建MVP结构
  15. Kafka中操作topic时 Error:Failed to parse the broker info from zookeeper
  16. 【转】linux下设置ssh无密码登录
  17. Android远程桌面助手扩展之微信跳一跳辅助
  18. [模板] 最近公共祖先/lca
  19. Python date,datetime,time等相关操作总结
  20. GNU Wget 1.19.1 static built on mingw32

热门文章

  1. CODEVS——T1979 第K个数
  2. 题目1205:N阶楼梯上楼问题(2008年华中科技大学计算机保研机试真题:递推求解)
  3. IOS-Run loop学习总结
  4. 94.文件bat脚本自删除
  5. 记一些stl的用法(持续更新)
  6. VC++的函数指针和回调函数 及友元函数
  7. 【Codeforces Round #446 (Div. 2) C】Pride
  8. sql基础知识集锦
  9. 关于python的二维数组
  10. MVC+EasyUI实现查询显示到对应表格