ã§ç°¡åã§ãããã ãCé¢æ°ãä½ãã®ã§ãPython.hãªã©ã®devã©ã¤ãã©ãªãgccã¨ã㣠ããã¼ã«ãäºåã«ã¤ã³ã¹ãã¼ã«ãã¦ããå¿ è¦ãããã¾ãã ç°¡åãªä½¿ãæ¹Â¶ >>> import psycopg2 # ã³ãã¯ã·ã§ã³ä½æ >>> conn = psycopg2.connect("dbname=test host=localhost user=postgres") # ã«ã¼ã½ã«ä½æ >>> cur = conn.cursor() # SQLã³ãã³ãå®è¡ (ä»åã¯ãã¼ãã«ä½æ) >>> cur.execute("CREATE TABLE test (id serial PRIMARY KEY, num integer, data varchar);") # SQLã³ãã³ãå®è¡ (ãã¬ã¼ã¹ãã«ãã¼ä½¿ç¨ãã¨ã¹ã±ã¼ããåæã«ããã) >>> cur.execute("INSERT INTO test
{{#tags}}- {{label}}
{{/tags}}