DB
ãªããsqliteé¢æ°ã¨PDOã®SQLiteãã©ã¤ãã¯SQLiteã®ãã¼ã¸ã§ã³éãã®ãã sqliteé¢æ°ã¯SQLite2ã§PDOã¯SQLite2ã¨SQLite3ã使ããã åãç°å¢ã§åããã¦ãã®ã«ãªãã§ãã¡ã¤ã«ãã©ã¼ããããããããã¨ãè¨ãããã®ãã¨æã£ããã ããã¦CakePHPã®SQLite DBOã¯SQâ¦
ä»ã¾ã§VARCHARã§æã£ã¦ãããã¼ã¿ããæ°å¤ããå ¥ããªãã£ã¦ãã¨ã§INTEGERåã«å¤ãããã¨ã«ãªã£ããã ãã©ãALTER TABLEããã¾ããããªãã¦ãããããªã ALTER TABLE foo ALTER COLUMN bar TYPE INTEGER; ä½ã®èããç¡ãã«ãã£ã¦ã¿ããæ¡ã®å®ã¨ã©ã¼ã«ãªã£ããâ¦
PostgreSQLã§æ¥æ¬èªãæ ¼ç´ããã¦ããã«ã©ã ãORDER BYã§ã½ã¼ãããããæããã«ããããé åºã§è¿ã£ã¦ããã test=# select name from test_table order by name asc; name - è©¦é¨ ã¦ã㨠ãã¹ã ã¦ãã¨ã§ã 試é¨ãã¼ã¿ ãã¹ããã¼ã¿ test (7 rows) ãããªæâ¦
MySQL5.1ãã確èªãã¦ç¡ãã§ããã UPDATEæã«ãLIMITå¥ãããããã http://kjirou.sakura.ne.jp/mt/2008/05/mysql_update.html ããã¯ç¥ããªãã£ãã ãã¼ã¿ãç´æ¥ããã£ã¦ããã¨ããªã©ã«ã¨ããããLIMIT 1ãªãã¦ã¤ãã¦ããã¨ããã£ããå ¨ä»¶æ´æ°ãã¦ãã¾ãâ¦
ååã®é ååã«ç¶ããä»åº¦ã¯è¤ååã使ã£ã¦ã¿ãã ãã®è¤ååã¨ããã®ã¯è¤æ°ã®ãã£ã¼ã«ãã®çµãä¸ã¤ã®ãã¼ã¿åã¨ãã¦æ±ãããã¡ããã©Cè¨èªã®æ§é ä½ã®ãããªæ©è½ã¨ãªãã ååã®è¨äºï¼PostgreSQLã§é ååã®ã«ã©ã ã使ã£ã¦ã¿ã - ã±ãããã¡ã¢ ä½ã¯ã¨ããããâ¦
PostgreSQLã§ã¯ã«ã©ã ã®ãã¼ã¿åã«é åã使ããã¨ãåºæ¥ãããã¡ããSQL99æºæ ãªã®ããªã ä½ã¯ã¨ããããã¼ãã«ãä½æãã SQLã¯ãããªæãã CREATE TABLE favorites ( username varchar(20), -- ã¦ã¼ã¶å category varchar(20), -- ã«ãã´ãªå items varchâ¦
æ¶è²»è åãã®Webãµã¤ãã®æ§ç¯ããã¦ããã¨å¿ ãã¨ãã£ã¦ããã»ã©ä¼å¡ç®¡çæ©è½ãå«ã¾ãã¦ããããã ãããã®ä¼å¡æ å ±ã®åãæ±ãããªããªãåä»ã ãªãã¨æãä»æ¥ãã®é ã åç´ãªã±ã¼ã¹ã§ã¯æ¬¡ã®ãããªå½¢ã®ä¼å¡ãã¼ãã«ãä½ããã¨ãå¤ãã¨æããããããã®ä¸ã®åâ¦