Re: [firebird-support] How do I limit an SQL search list to 10 records?

2019-12-12 Thread Kjell Rilbe kjell.ri...@marknadsinformation.se [firebird-support]
Den 2019-12-12 kl. 22:36, skrev Clyde Eisenbeis cte...@gmail.com [firebird-support]: > Marcin, Minor tweak => works!  I also added DESC to retrieve the > newest records using the field key name (number is an auto increment). > ` > "SELECT FIRST " + stNumOfRecordsToRetrieve + " *

Re: [firebird-support] How do I limit an SQL search list to 10 records?

2019-12-12 Thread Clyde Eisenbeis cte...@gmail.com [firebird-support]
Marcin, Minor tweak => works! I also added DESC to retrieve the newest records using the field key name (number is an auto increment). ` "SELECT FIRST " + stNumOfRecordsToRetrieve + " * FROM " + stTableName + " ORDER BY " + fstKeyID + " DESC"; ` It's

[firebird-support] Number of transactions by selected user

2019-12-12 Thread hamacker sirhamac...@gmail.com [firebird-support]
To get number of connections by selected user: SELECT count(*) FROM MON$ATTACHMENTS a WHERE a.MON$USER='sysdba' But If I need number of transactions pending, is it possible?

Re: [firebird-support] How do I limit an SQL search list to 10 records?

2019-12-12 Thread 'Marcin Bury' marcin.b...@studio-delfi.pl [firebird-support]
Hi SELECT FIRST 10 * FROM A_TABLE Should work Cheers Marcin -- Wiadomość oryginalna -- Od: "Clyde Eisenbeis cte...@gmail.com [firebird-support]" Do: firebird-support@yahoogroups.com Data: 12.12.2019 19:59:44 Temat: [firebird-support] How do I limit an SQL search list to 10

[firebird-support] How do I limit an SQL search list to 10 records?

2019-12-12 Thread Clyde Eisenbeis cte...@gmail.com [firebird-support]
This finds all records: `` "SELECT * FROM " + stTableName `` This does not work: `` "SELECT * FROM " + stTableName + " FETCH 10 ROWS" ``