I've this problem with a Sybase IQ database (version SELECT @@version
shows Adaptive Server IQ/12.5.0/0306) using the PHP SQL Anywhere extension.
I can't select all rows, i.e. SELECT * from anytable
always returns 30 rows.
The only workaround I've found is using SELECT TOP 1000 * from anytable
(maximum is 32767) but there are certain situations where I need all rows.
Any help is much appreciated.
EDIT: example script (much like the documentation)
$conn = sasql_connect("HOST=host:port;DBN=dbn;UID=uid;PWD=pwd");
if (!$conn) { echo "Connection failed."; die(); }
$result = sasql_query($conn, "SELECT * FROM dba.anytable" );
sasql_result_all($result); // display 30 rows in a formatted table
sasql_free_result($result);
sasql_disconnect($conn);
EDIT: specs of both machines where I'm experiencing the same exact problem:
Development machine:
Production sever:
Probably a stupid question, but just to be sure.
Did you check in Client --> Tools -> Sybase IQ -> Maximum number of rows to display.
(sry for posting this as an answer, but i dont have enough rep to ask you in comments.) Cheers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With