|
|
| |
MySQL ±âº»Äõ¸® : DELETE ¹® |
|
|
|
16³â Àü |
MySQL ±âº»Äõ¸® : DELETE ¹®
¡¡
Äõ¸® ¸í·ÉÀ» ½ÇÇàÇÏ·Á¸é
[Àüü°ü¸®]¡æ[DB°ü¸®]¡æ[Å×ÀÌºí °ü¸®]¡æ[MySQL Query
½ÇÇà ¹öÆ°]À» Ŭ¸¯ÇÏ¸é ½ÇÇàÆûÀÌ ÀÖ½À´Ï´Ù.
¶Ç´Â php ¼Ò½º¿¡ Á÷Á¢ ³Ö¾î¼ ½ÇÇà½ÃÅ°·Á ÇÒ¶§´Â
mysql_query("Äõ¸®¹®"); Çü½ÄÀ¸·Î ÀÛ¼ºÇÏ¸é µË´Ï´Ù.
µ¥ÀÌŸ À¯½ÇÀÇ À§Ç輺ÀÌ ÀÖÀ¸´Ï È®½ÇÄ¡ ¾ÊÀº Äõ¸®¹®Àº Àý´ë ½ÇÇàÇÏÁö
¸¶½Ê½Ã¿À.
¡¡ |
delete from ABCDE where
no='3'
'ABCDE' Å×ÀÌºí¿¡¼ 'no' Ä÷³°ªÀÌ '3' ÀÎ ·¹Äڵ带 ÀüºÎ »èÁ¦ÇÑ´Ù.
delete from ABCDE where
no>3
'ABCDE' Å×ÀÌºí¿¡¼ 'no' Ä÷³°ªÀÌ '3' º¸´Ù
Å« ·¹Äڵ带 ÀüºÎ »èÁ¦ÇÑ´Ù.
delete from ABCDE where
no<>3
'ABCDE' Å×ÀÌºí¿¡¼ 'no' Ä÷³°ªÀÌ '3' ÀÌ
'¾Æ´Ñ' ·¹Äڵ带 ÀüºÎ »èÁ¦ÇÑ´Ù.
delete from ABCDE where
wdate>32015467 order by no limit 30
'ABCDE' Å×ÀÌºí¿¡¼ 'wdate' Ä÷³°ªÀÌ
'32015467' º¸´Ù Å« ·¹Äڵ带 'no' Ä÷³°ªÀ» ±âÁØÀ¸·Î
Á¤·Ä½ÃÄѼ »óÀ§ 30 °³¸¦ »èÁ¦ÇÑ´Ù.
delete from ABCDE where
tbody like '%¹«·áµ¿¿µ»ó%'
'ABCDE' Å×ÀÌºí¿¡¼ 'tbody' Ä÷³°ª¿¡ '¹«·áµ¿¿µ»ó'
À̶õ ´Ü¾î°¡ Æ÷ÇÔµÈ ·¹Äڵ带 ÀüºÎ »èÁ¦ÇÑ´Ù.
delete from ABCDE where
tbody like '%¹«·áµ¿¿µ»ó%' or subject like '%±¤°í%'
'ABCDE' Å×ÀÌºí¿¡¼ 'tbody' Ä÷³°ª¿¡ '¹«·áµ¿¿µ»ó'
À̶õ ´Ü¾î°¡ Æ÷ÇԵǾî Àְųª
'subject' Ä÷³°ª¿¡ '±¤°í' ¶ó´Â ´Ü¾î°¡ Æ÷ÇÔµÈ ·¹Äڵ带 ÀüºÎ »èÁ¦ÇÑ´Ù.
¡¡ |
|
|
̵̧ : 272 |
̵̧
¸ñ·Ï
|
|
| |
|