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: 

Edit a particular element in a data base table

Solved!
Go to solution

Hi kavi,

the uploaded vi works for me and i use your database in this example. Try it with the string from my example.

 

Mike

0 Kudos
Message 21 of 52
(1,758 Views)
Use a single quote (') instead of the double quote (") to indicate a text value. I got the same error on the sample database until I changed to the correct text delimiter. Is there an option in access to use the " ? The only thing that works with SQL Server and Oracle is ' .
Message 22 of 52
(1,750 Views)
Solution
Accepted by karpaga
Thanku all.I can uptate it.I just used single quotation for strings.Thanku mike,rajni and dennis
kavi
0 Kudos
Message 23 of 52
(1,739 Views)

 

 I tried to update kavi as sangeetha and its corresponding Mark value 50 as 100

 

using this comment 

 

 

UPDATE a SET Names='SANGEETHA', Marks='100' WHERE Names='KAVI'

 

But kavi is uptated as sang and 100 is updated as 10.ie more than the previous size is not updated.

 

 

 

kavi
0 Kudos
Message 24 of 52
(1,730 Views)
anyone help me
kavi
0 Kudos
Message 25 of 52
(1,726 Views)

Hi kavi,

i don't understand your problem. Did you change the database settings? With your database file from yesterday i can use your Update query without problems. Maybe you change the length ok the fields.

 

Mike

0 Kudos
Message 26 of 52
(1,724 Views)
No mike i didnt change any settings.i use tablewrite vi to insert table and update vi to update table.I attached the two vis
kavi
0 Kudos
Message 27 of 52
(1,719 Views)
0 Kudos
Message 28 of 52
(1,718 Views)

Hi kavi,

you changed the field sizes and that is the reason of what you see. You allow only 4 signs in the "Name" field and 2 in the "Marks" field. If you need longer names, then you have to change the size.

 

Mike

0 Kudos
Message 29 of 52
(1,716 Views)
Mike one more doubt is it possible to insert a2D array data without using for loop in database
kavi
0 Kudos
Message 30 of 52
(1,715 Views)