The following query does not work, and produces an error:
A transport-level error has occurred when receiving results from the server
SELECT
*
FROM
table1 a,
table2 b,
table3 c
WHERE
a.location = b.location AND
b.location = c.location AND
a.id = c.id AND
a.entry = ''34690''
Although this query works:
SELECT
a.location,
a.id,
a.entry,
c.desc,
b.name
FROM
table1 a,
table2 b,
table3 c
WHERE
a.location = b.location AND
b.location = c.location AND
a.id = c.id AND
a.entry = ''34690''
I need to select pretty much everything from all tables (about 100 items), but do I really need to specify each column that I need in the resultset?
Even though it’s generally a good practice to avoid using the
*qualifier when writing client SELECT queries, there could be a few reason why it might not be working:EDIT
Have you tried running a query to return just the one column that causes the problem? If you have and that worked by itself but causes the full query to fail you could try to run two queries. One to get the rest of the columns, and one to get the remaining one column. Then in your client, re-assemble the information.. If you do go this route, you will have to make sure you include whatever unique identifier you are using to identify each record in both queries so that you can map back the long-text-column to the rest of the information for each record.