SQL 㧠LIKE æ¡ä»¶ã使ãã¨ãã¿ã¼ã³ä¸è´æ¤ç´¢ãå®è¡ã§ãã¾ãã ãã®æã'%'ã¨'_'ã¯ããããä»»æã®æååãä»»æã®ï¼æåã表ãç¹æ®æåã¨ãã¦æ±ããã¾ãã ãããã£ã¦ã'%'ã'_'ã¨ããæåãæ¤ç´¢ãããå ´åã¯ãã¨ã¹ã±ã¼ãæåã使ç¨ãã¦ãæåã¨ãã¦ã®'%'ã'_'ã§ãããã¨ãæ示ããå¿ è¦ãããã¾ãã ä¾ãã°ãCOL1 ã«'_'ãå«ã TBL1 ã®ã¬ã³ã¼ããæ¤ç´¢ãããå ´åã¯ä»¥ä¸ã®ããã«è¨è¿°ãã¾ãã SELECT * FROM TBL1 WHERE COL1 LIKE '%\_%' ESCAPE '\' ã¨ãããã¾ã§ã¯ SQL ã®å¸¸èã§ãã ããããå®ã¯ãã®'%'ã¨'_'ãå ¨è§ã®'ï¼ 'ã'_'ã§ããã¯ãç¹æ®æåã¨ãã¦èªèããã¦ãã¾ãã®ã§ãã ã¤ã¾ãã SELECT * FROM TBL1 WHERE COL1 LIKE '%_%' ã¨è¨è¿°ããã¨ãâä»»æã®ï¼æåãå«ãâã¨ãªãã¾ãã®ã§ãNul
{{#tags}}- {{label}}
{{/tags}}