How to edit select result without using update statment

Moderator: NorbertKrupa

Post Reply
sapir azulay
Newbie
Newbie
Posts: 16
Joined: Thu Nov 29, 2012 4:16 pm

How to edit select result without using update statment

Post by sapir azulay » Mon Jun 24, 2013 8:39 am

Hi all,
Is somebody know how can I edit some query result easily without using Update command?

In oracle I use it:
select r.*,rowid from dw_articles r where..


Thanks a lot!

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: How to edit select result without using update statment

Post by JimKnicely » Mon Jun 24, 2013 1:38 pm

Hi,

Sorry but I don't understand your question :?

What do you mean by "edit"? Do you mean view?

If you just want to view the data in the table, run the same query in Vertica, except leave out the rowid pseudo-column.

select r.* from dw_articles r where..

Or do you need to change (i.e. update) row values?
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

sapir azulay
Newbie
Newbie
Posts: 16
Joined: Thu Nov 29, 2012 4:16 pm

Re: How to edit select result without using update statment

Post by sapir azulay » Sun Jun 30, 2013 9:37 am

Hi,
Thanks for your respond,
I want to edit the data in the table.
I can do it by this Updare statement:

update Table_name set column_name=10 where..

But I want to be able to update manually while I'm looking the data
In Oracle I used to use Toad Application, there when you write the select statement with the row_id , you may change the shown data

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: How to edit select result without using update statment

Post by JimKnicely » Mon Jul 01, 2013 3:39 pm

Hi,

Now I understand :)

There is a freeware version of Toad called "Toad for Data Analysts Freeware v3.0" that is compatible with Vertica. It has a data grid that allows you to edit tables data.

You can download it from here:

http://www.toadworld.com/m/freeware/547.aspx
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “Vertica SQL”