Subject | Re: [IBO] Using "or" in sqlwhereitems |
---|---|
Author | nibler@t-online.de |
Post date | 2003-11-26T08:35:48Z |
James,
ib_query.sql.add('select id, name from supplier');
ib_query.sqlwhereitems.add('name like ''%hardware%" or name like
''%auto%" or name like ''%supply%''');
But like Jason said, sqlwhereitems will affect only onPrepare !
Harald
> ib_query.sql.add('select id, name from supplier');Right !
> ib_query.sqlwhereitems.add('or name like ''%hardware%" or name like
> ''%auto%" or name like ''%supply%''');
>
> I think the problems is because the first line of the sqlwhereitems have
> "or" as the first word.
ib_query.sql.add('select id, name from supplier');
ib_query.sqlwhereitems.add('name like ''%hardware%" or name like
''%auto%" or name like ''%supply%''');
But like Jason said, sqlwhereitems will affect only onPrepare !
Harald