on 12-19-2014 5:33 AM
Hi HANA experts,
I have some doubt in SQL HANA qurey to update the table content.
My requirement is say example i need to change the content of column where ever texas is there,i need to change it as Michigan.
UPDATE “Claim_Value.T790” set State = michigan WHERE State = Texas; this is not working
when i google i could find only the update query if the content is integer value..can anybody help to solve this??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraj,
Syntax to update is as follows
UPDATE "schema_name"."Table_name" SET "field_name" = 'value' WHERE "field_name" = 'value';
Try giving double quotes for field name too. If your value is a number, enter it directly without quotes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeraja-
Please enclose your string with the single quotes
UPDATE “Claim_Value.T790” SET state = 'Michigan' WHERE state = 'Texas';
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.