Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Updating Multiple columns using one SQL statement!!
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Dillon More
18y
3k
1
Reply
Hello, I was wondering if Updating Multiple columns using one SQL statement is possible at all????
Here is a sample of what I'm trying to do, and it's me a compiler error " two many character in character literal".
string strUpdate = "UPDATE TranObjProperty, TranObjPropValue SET TranObjProperty.Name ='" + strName, TranObjPropValue
.Value ='" + strValue + "' where TOID="+id
;
It's basically erroring out right after the "DOT" operator in TranObjPropValue.Value
(highlighted in red)
and then the rest of the string is all highlighted in red as well. THe compiler error again is " "two many character in character literal".
Can some one please help???
Thanks
Dillon More
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Oracle - SYSDBA
Help needed: Dinamically create PostgreSQL database via ODBC