Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

help will be much appreciated - vb.net and a sample code (1 reply)

$
0
0
hello,
i'm new to this stuff
using VB.net i would like to renumber the primary index of a table and reset it to 1

found this code

SET @var_name = 0;
UPDATE ws_log SET linenum = (@var_name := @var_name +1);
ALTER TABLE ws_log AUTO_INCREMENT = 1

it works through Heidi
how do i implement it in VB.net?

or if there's any better way i will also appreciate it

many thanks

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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