ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i replace data in a database?

Im using the database toolkit and want to read data from a database, add a number to the data and put it back in the same row and column as I read it. How do I solve that? So far I have only been able to read the data, add the number and put it back in the end of the file. 😞
0 Kudos
Message 1 of 2
(3,073 Views)
You modify an existing database record with the SQL command UPDATE. The general syntax is

UPDATE table_name [options] SET col_name =expr,..
[WHERE clause]

I don't know if there's a specific VI for UPDATE in the toolkit but you should be able to execute any SQL command directly.
0 Kudos
Message 2 of 2
(3,073 Views)