Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to UPDATE record ?

Status
Not open for further replies.

JackTheRussel

Programmer
Aug 22, 2006
110
FI
Hi.

I have table called users:
Code:
name  | password | project | pr
aaron   passwd     default    wysiwyg
john    passwd2    proj2    sams

Now I ty to update my table:

UPDATE users set project ="default2" WHERE name = aaron;

OR

UPDATE users set project ="default2" WHERE name = "aaron";

But I always get error:

ERROR: Attribute 'default2' not found

What should I do ?
 
Thanks feherke.

I'm totally newbie in PostgreSQL.

I have used to use MySQL database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top