AS/400 'SELECT 1' Equivalent
Posted
by bryan_cook
on Stack Overflow
See other posts from Stack Overflow
or by bryan_cook
Published on 2010-03-16T13:35:42Z
Indexed on
2010/03/16
13:46 UTC
Read the original article
Hit count: 202
I'm trying to help a friend troubleshoot connection problems with an AS/400. He'd like to run a query against the AS/400 that will always return a record, (similar to a SELECT 1 against MSSQL).
He's attempted running SELECT 1 but without luck ... I'm assuming that the AS/400 expects a FROM TableName ...
Can anyone provided assistance? Is there a system table/file that always exists that he can run a SELECT TOP 1 (or it's equivalent) against? I've never interacted with an AS/400 so I'm a bit out of my element ... was hoping SO could give me a quick answer ...
Thanks in advance!
© Stack Overflow or respective owner