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,284 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,276 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,265 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,256 Views)
anyone help me
kavi
0 Kudos
Message 25 of 52
(1,252 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,250 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,245 Views)
0 Kudos
Message 28 of 52
(1,244 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,242 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,241 Views)