2015-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ä½åº¦ãã°ã°ã£ã¦ããã®ã§ã alter table some_table add unique (some_field); ã¡ãªã¿ã«ãè¤æ°ã®ãã£ã¼ã«ãã®çµã¿åããã§éè¤é¤å»ãããå ´åã¯ä»¥ä¸ã alter table some_table add unique (some_field1, some_field2); åè MySQL ã§å¾ããã¦ãã¼ã¯ã¤ã³ããã¯â¦
ã³ã³ã¿ã¯ãã使ãå§ãã¦ãã3å¹´ãããçµéããããã§ããããã®é2weekã®ã¬ã³ãºã«é¢ãã¦ã¯ä¸è²«ãã¦åããã®ã使ãç¶ãã¦ãã¾ããã ãã¾ã«1dayã使ã£ã¦ã¯ãããã®ã®ãã³ã¹ãçãªåé¡ããæ®ã©ä½¿ããªããªãã¾ããã ãã®ãã³ã¬ã³ãºã®è³¼å ¥ã«éãã¦ããã£ãããªâ¦
PyMySQL3ã使ã£ã¦DBå ã®ãã¼ã¿åå¾ãããã¨ãããvarcharåã«è¨å®ãããã«ã©ã ã®ãã¼ã¿ãbytesåã§è¿ã£ã¦ãã¦ãã¾ãåé¡ã«ééã å¾ã ã®ããã¡ã¢ã ç°å¢ Python 3.4.3 MySQL 5.6 PyMySQL3 解決ç PyMySQL3ã¸ã®æ¥ç¶ã¨ã¯ã¨ãªã¯ä»¥ä¸ã®ãããªå¹³å¡ãªãã®ã§ããã â¦
ç°å¢ Python 3.4.3 æ¹æ³ xml.sax.saxutilsã¢ã¸ã¥ã¼ã«ã®unescapeã¡ã½ããã使ãã°OKã from xml.sax.saxutils import unescape text = '& < >' print(unescape(text)) # => '& < >' 第äºå¼æ°ã«dictãä¸ããã¨ãç¬èªè¾æ¸ã®å®ç¾©ãå¯è½ã¨ã®ãã¨ã fromâ¦
ã¾ãå¼ã£ããããããªã®ã§ã¡ã¢ã ç°å¢ Python 3.4.3 sqlite3 解決ç executeã¡ã½ããã§SQLãå®è¡ãããã¨ããã¨ããã sqlite3.ProgrammingError: Incorrect number of bindings supplied. ã¨æããã¦ãã¾ãã¾ããã åå ã¯åç´ã§ãexecuteã¡ã½ããã®ç¬¬äºå¼â¦
ãã«ã¹ã¿ãã¯ã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã ã¨èªåã§ãã£ã¦ããã¾ãããå°è¦æ¨¡ãã¬ã¼ã ã¯ã¼ã¯ã ã¨èªåã§ãããã°ãªããªãããã¡ã¢ã CREATE TABLE some_tabel ( `id` INT(11) NOT NULL AUTO_INCREMENT, `created` DATETIME NOT NULL DEFAULT CURRENTâ¦
ãã¼ã«ã«ã®Macãããªã¢ã¼ãã®CentOSã¸éµèªè¨¼ã§sshæ¥ç¶ããããã®æé ãã¡ã¢ã£ã¦ããã¾ãã å ¬ééµããã³ç§å¯éµã¯äºãä½æãæ¸ãã§ãããã®ã¨ãã¾ãã ç°å¢ Mac OS X Yosemite CentOS 6.6 éµã®è¨å® ã¾ãã¯ãã¼ã«ã«Macãããªã¢ã¼ãã«å ¬ééµã®éä»ã scp ~/.sshâ¦