Skip to Content
author's profile photo Former Member
Former Member

SQL Query to Update a table

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??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 19, 2015 at 12:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2014 at 05:42 AM

    Hi Neeraja-

    Please enclose your string with the single quotes 😊

    UPDATE “Claim_Value.T790” SET state = 'Michigan' WHERE state = 'Texas';

    Thanks 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2015 at 10:59 AM

    Hi,

    Neeraja

    Regards,

    Khaga


    picu.png (118.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.