프로그래밍
ASP ODBC MySQL 사용
warpmemory
2016. 12. 7. 17:57
1 2 3 4 5 6 7 8 9 10 11 | <% set dbcon = Server.CreateObject("ADODB.Connection") dbcon.Open "Driver={MySQL ODBC 5.1 driver}; Server=localhost; Database="&dbName&"; Uid="&dbId&";Pwd="&dbPasswd&";" query = "SELECT test_field FROM test_table WHERE where_field = 'xxx' LIMIT" Set Rs = dbcon.execute(query) While Not Rs.EOF test_field = Rs.Fields("test_field") Rs.MoveNext Wend %> | cs |