¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 58°Ç
   
[MYSQL] ¹®ÀÚ¿­ ġȯ - replace
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2011-01-11 (È­) 17:02 Á¶È¸ : 11513
±ÛÁÖ¼Ò :
                          

Çʵ嵥ÀÌŸ¸¦ º¯°æÇØÁÖ´Â ¹æ¹ýÀÔ´Ï´Ù.
# REPLACE(Çʵå¸í, ¼öÁ¤Àü ¹®ÀÚ¿­, ¼öÁ¤ÈÄ ¹®ÀÚ¿­)
 
 
³ª°°Àº °æ¿ì´Â µ¥ÀÌŸ¿¡ ÀúÀåµÈ ¾ÆÀÌÇǸ¦ ³×Æ®¿öÅ© ´ë¿ªÀ» º¯°æÇϱâ À§ÇØ »ç¿ëÇß´Ù.
mysql>  update 130_policy set server_ip=replace(server_ip,'xxx.xxx.121','xxx.xxx.252');
Query OK, 18 rows affected (0.04 sec)
Rows matched: 18  Changed: 18  Warnings: 0
 
mysql>  update 130_policy set destination_ip=replace(destination_ip,'xxx.xxx.121','xxx.xxx.252');
Query OK, 17 rows affected (0.00 sec)
Rows matched: 18  Changed: 17  Warnings: 0

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.