Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 27th, 2007, 07:42 AM
john2236 john2236 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 2 john2236 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 44 sec
Reputation Power: 0
Auto code - Help

Hello all (:

I'm making a program, when I put the auto code script to generate code for clients, citys I receive this error:

Dynamic SQL Error
SQL Error code: -206
Column unknown CODCLIENTE
At line 1, column 12
-----------------------------

I was make a auto code for the city table, the script in the SQL statement is: select max (codcidade) as MAIOR from cidade...it's all OK

But when I do with client table I received the error above.
The script is completely right, the table name is right, column name too, but I don't know what is happening ;/
------------------------------------------
The table code is here:
/* Table: CLIENTE, Owner: SYSDBA */

CREATE TABLE "CLIENTE"
(
"codcliente" INTEGER NOT NULL,
"nomecliente" VARCHAR(60),
"codcidade" INTEGER,
"telefone" VARCHAR(11),
"endereco" VARCHAR(80),
"comentarios" VARCHAR(300),
"devedor" FLOAT,
"expiraem" DATE,
"comprasfeitas" INTEGER,
CONSTRAINT "PK_CLIENTE" PRIMARY KEY ("codcliente")
);

------------------------------------------------
please someone help me and sorry, I don't speak english very well =P

Reply With Quote
  #2  
Old February 27th, 2007, 12:20 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 852 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 10 h 56 m 22 sec
Reputation Power: 19
Quote:
Originally Posted by john2236
Hello all (:

I'm making a program, when I put the auto code script to generate code for clients, citys I receive this error:

Dynamic SQL Error
SQL Error code: -206
Column unknown CODCLIENTE
At line 1, column 12
-----------------------------

I was make a auto code for the city table, the script in the SQL statement is: select max (codcidade) as MAIOR from cidade...it's all OK

But when I do with client table I received the error above.
The script is completely right, the table name is right, column name too, but I don't know what is happening ;/
------------------------------------------
The table code is here:
/* Table: CLIENTE, Owner: SYSDBA */

CREATE TABLE "CLIENTE"
(
"codcliente" INTEGER NOT NULL,
"nomecliente" VARCHAR(60),
"codcidade" INTEGER,
"telefone" VARCHAR(11),
"endereco" VARCHAR(80),
"comentarios" VARCHAR(300),
"devedor" FLOAT,
"expiraem" DATE,
"comprasfeitas" INTEGER,
CONSTRAINT "PK_CLIENTE" PRIMARY KEY ("codcliente")
);

------------------------------------------------
please someone help me and sorry, I don't speak english very well =P

First, the SQL you posted does not relate to the table you posted. Why?

Second, if you are going to use case sensitive column names ("codcliente"),
which is not recommended, you have to follow through EVERYWHERE.
Code:
select max ("codcidade")


Hope this helps.
Clive

Reply With Quote
  #3  
Old February 27th, 2007, 03:12 PM
john2236 john2236 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 2 john2236 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 44 sec
Reputation Power: 0
Thanks, it works

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Auto code - Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT