Another Firebird/delphi problem

Posted on 2007-08-08
Medium Priority
Last Modified: 2013-12-09
I want to update a record of a field.

i have a table "people" with some fields and one of them has the name counter and it has a value for example 123 and i want with delphi to update this value and set it to 0.

I do this

 IBQuery2.SQL.Text:='UPDATE people SET COUNTER="0"';

but i get an error:
Sql error code=-206
column unknown
Question by:Alex
LVL 19

Accepted Solution

MerijnB earned 2000 total points
ID: 19652842
COUNTER suggests that the field is an integer

I'd expect something like:  IBQuery2.SQL.Text:='UPDATE people SET COUNTER=0';
LVL 21

Expert Comment

ID: 19652846
is counter name of field in table people?


Author Comment

ID: 19652867
MerijnB yes you are right, i am an idiot i know that the " " is for a string and if the field is an integer you put it without " "  but my mind maybe stops working for a few minutes ;)

i remove the "" and it is ok now!

thank you MerijnB.

thank you ziolko for the post again.
LVL 19

Expert Comment

ID: 19654501
just to be pedantic its ' ' around a string not " "

Author Comment

ID: 19659972
Yes, thank you NickUpson for the post ;)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question