This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Upate Records in Kexi

Tags: None
(comma "," separated)
User avatar
Thiudans
Registered Member
Posts
14
Karma
0
OS

Upate Records in Kexi

Fri Dec 07, 2012 1:10 am
Hi all,

When I try to use SQL to update records, it says there is an error in my syntax, but I don't see it.

Here is what I want to do. I have a table called users with a column called techs. I want to query the techs field for certain names and change them to other names.

So, here is the query I wrote:

UPDATE users
SET tech = 'Tech 1'
WHERE tech = 'Tech 2'

This should change all "Tech 1" to "Tech 2" in the users table.

However, when I enter thee command, I get the error "UPDATE" is a reserved keyword."

So, how do I update a bunch of records?

(It is probably pretty obvious, but I am really stuck, and not a SQL guy...."


Quis custodiet ipsos custodes?
User avatar
jstaniek
Moderator
Posts
1027
Karma
2
OS

Re: Upate Records in Kexi  Topic is solved

Fri Dec 07, 2012 10:42 am
Hi Thiudans,
Only SELECT queries are supported by the Query Designer at the moment. This may be possible using scripts (without SQL) but this is less efficient approach as more data needs to be fetched to the client side.

I propose to add these wishes at bugs.kde.org:
- Add support for UPDATE queries in Designer
- Add support for DELETE queries in Designer
- Add support for CREATE queries in Designer


Best regards,
Jarosław Staniek
• Qt Certified Specialist
KEXI - Open Source Visual DB Apps Builder
• Request a feature or fix for KEXI here
May I help you? Please mention your app's version and OS when asking for help
User avatar
Thiudans
Registered Member
Posts
14
Karma
0
OS

Re: Upate Records in Kexi

Fri Dec 07, 2012 2:38 pm
jstaniek wrote:Hi Thiudans,
Only SELECT queries are supported by the Query Designer at the moment. This may be possible using scripts (without SQL) but this is less efficient approach as more data needs to be fetched to the client side.

I propose to add these wishes at bugs.kde.org:
- Add support for UPDATE queries in Designer
- Add support for DELETE queries in Designer
- Add support for CREATE queries in Designer


Thanks. I will lookk into the scripting option.


Quis custodiet ipsos custodes?


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]