Re: Firebird return wrong value
| From: | Lester Caine | Date: | Fri, 18 Jan 2013 16:26:09 +0000 |
| Subject: | Re: Firebird return wrong value | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48655@lists.php.net to get a copy of this message | ||
Matijn Woudt wrote:
Matijn ... All totally incorrect information for a REAL SQL database. Backticks are a bodge for MySQL only and not part of the SQL standard. And Firebird is used for many systems worldwide and is a much better alternative to many later database engines. Many Oracle users are porting over to Firebird to reduce costs. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.ukDear List!i have a strange problem. I have a Firebird database (dialect 3). Firebird server: 2.0.6 I create a table, and insert a row like that: CREATE TABLE PRICE ( ID INTEGER NOT NULL, "NAME" VARCHAR(10), COST NUMERIC(15, 2)); INSERT INTO PRICE (ID, "NAME", COST) You should not use double quotes around column names. Try to use backtick operator instead: INSERT INTOPRICE(ID,NAME,COST) Don't know if that solves the problem, but it's atleast good practice. Second, do you really need firebird database? It's pretty outdated database, and there are much better alternatives.