Subject | Re: [IBO] TIBOTable.SQL |
---|---|
Author | Helen Borrie |
Post date | 2001-10-11T12:09:54Z |
At 11:06 AM 11-10-01 +0000, you wrote:
Can you explain what you are trying to do?
regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>I have the simple query(s)You can't have any SQL statements in a TIBOTable. It does not surface a SQL property. This component is like the native VCL TTable - it is a SELECT * FROM ATABLE and selects all columns, all rows from the table assigned to its Tablename property.
>
>update salenum
>set customernum = 1 + (select customernum
> from salenum);
>select customernum
>from salenum
>
>This work 100% in the interbase interactive sql.
>It does not work in TIBOTable.SQL. I assume this is because I cant
>have 2 SQL statements per tIBOTable.
>update salenumThis is (a) not a valid SQL statement and (b) it is not a SELECT statement. What exactly do you want to do here?
>set customernum = 1 + (select customernum
> from salenum);
>select customernumThis is a select statement that, in a TIBOQuery, would return a dataset consisting of all of the customernum values in the table salenum. It has no applicability to a TIBOTable, though.
>from salenum
Can you explain what you are trying to do?
regards,
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________