select * from bills where id like "AK*45";
Because asterisk is not a wildcard in SQL.
Check the documentation for the LIKE clause.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Ah yes, thanks. So '%' is wildcard now.
"now"? It has been for as long as I have coded SQL!
At least since the late 70's :)
yea, i've been using '*' since the late 80's, i've been
diverted by the multiplicity of languages and syntaxes
over the years
AFAIK, the '*' wildcard with LIKE is only valid in MS-Access "SQL"
(which gives an error with '%' ...duh...).
With what - MS SQL? Not in any ANSI standard SQL.
'*' is Informix, i hadn't realized how far the drift was
from ANSI
Ah, yes, good old Informix. I haven't used it in years; almost
completely forgot about it!