Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[SOLVED] MySQL: how to update record?

$
0
0
Could anybody please give an example how to update record using MySQL UDF?
Looking around and seems cant find anything about this :(

Local $SQLCode, $TableContents = ""

$SQLInstance = _MySQLConnect($sUserName,$sPassword,$sDatabase,$sServerName)
$SQLCode = "UPDATE mytable SET Price='430' WHERE ProductID='BEX01'"
$TableContents = _Query ($SQLInstance, $SQLCode)
With $TableContents
	 While NOT .EOF
	 	 .MoveNext
	 WEnd
EndWith
_MySQLEnd($SQLInstance)

This code seems so wrong because after While NOT .EOF it does nothing :-D

Thanks in Advance :)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>