ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð°Ý¥ÎEXCEL(ODBC)«ç»ò§R°£MYSQL¸ê®Æªíªº¸ê®Æ(ºò«æ)

[µo°Ý] ½Ð°Ý¥ÎEXCEL(ODBC)«ç»ò§R°£MYSQL¸ê®Æªíªº¸ê®Æ(ºò«æ)

¤p§Ì¥ÎVBA¯à°÷±NEXCELªºÀx¦s®æ¼g¤J¸ê®Æ¦b¸ê®Æ®w
¦ý¬O·Q¦b¥[¤J¤§«e
¥ý±N¸ê®Æ®w©Ò¥H¤º®e§R°£
¦b®y¼g¤J°Ê§@
³Â·Ð¤j¤jÀ°À°¤p§Ì

§R°£µ{¦¡.rar (537 Bytes)

'Microsoft ActiveX Data Objects 2.X Library ³]©w¤Þ¥Î¶µ¥Ø
    Dim myCon As New ADODB.Connection
    Dim myRst As New ADODB.Recordset
            
    '«ü©w­n³s±µªº¦øªA¾¹
    myCon.Open ConnectionString:="server=AAA;db=AAA;driver=MySQL ODBC 3.51 Driver;uid=AAA;pwd=AAA"
   
    '°õ¦æSQL
    mysql = "delete from table_name"
    Set myRst = myCon.Execute(mysql)
    myCon.Close
    Set myRst = Nothing                 'ª«¥óªºÄÀ©ñ
    Set myCon = Nothing

TOP

        ÀR«ä¦Û¦b : ¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C
ªð¦^¦Cªí ¤W¤@¥DÃD