Click here to Skip to main content
15,891,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
let me explain i have 4 column in a table test_no(autogenerate),test_date(text),test_cycle_No(number),test_day(number)


so now the problem is test no as i said is autogenerating ,test_cycle_no and test_day this two column value are already in database ,but i have to generate and insert date column value externalyy...

i have written code for generating date values
but i want that this date values should be inserted here in this table ,consisting of all this columns.
so what query should i write ????
Posted

1 solution

You do not insert in this case.
You update and existing row based on the auto generating number.
E.g. Update table set test_date = @value where test_no=@testno
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900