postgreSQL 㧠id ã¨ãã®ãã£ã¼ã«ãã§èªåçã«çªå·ãå¢ãã¦ãããauto_increment ã¿ãããªè¨å®ããã¼ãã«ã«ããã¨ãã·ã¼ã±ã³ã¹ãä½ãããã ä¾ãã°ãããªãã¼ãã«ãä½ã㨠CREATE TABLE users( id SERIAL PRIMARY KEY, name VARCHAR(255) ); ãããªããªãã Schema | Name | Type | Owner --------+--------------+----------+---------- public | users | table | postgres public | users_id_seq | sequence | postgres ãã°ãã users ã«ãã¼ã¿ãã¤ã³ãµã¼ãããå¾ã§ã ãã®ã·ã¼ã±ã³ã¹ã«å¯¾ãã¦ã»ã¬ã¯ãããããã¨ã SELECT * FROM users_id_seq ; ã
{{#tags}}- {{label}}
{{/tags}}