I am getting the error
No data! (sqlJadual)
From this query
mssql_query("SELECT *
from tblstatusjadual
where idjadual like '1%' and
tahun='2011'
order by idjadual") or die('No data! (sqlJadual)');
But, when i change it to
mssql_query("SELECT idjadual,status
from tblstatusjadual
where idjadual like '1%' and
tahun='2011'
order by idjadual") or die('No data! (sqlJadual)');
it works fine.
it’s okay if I only select from 2 fields, but when I want to select more than 15 fields the query become long and confusing.
my question is mssql does not support select * in their query?
Any help would be appreciated!
I’m mentioning my comment as an answer here ’cause it helped you and the next time anyone visits/faces a similar kind of situation, he/she may refer this (instead of scanning the whole string of the above comments’ series).
If you issue a
SELECT *against anMSSQLtable and your table contains aTEXTcolumn with a blank string, you either1) Change the datatype of that column to
varchar2) Reset the value of the column from blank string to
NULL.to make the
SELECT *work.(On another note, I’ll recommend instead of using
SELECT *, you include only those columns in your query which you really require.)