Hi there,
in fact I feel pretty stupid to ask such a question, but I can't figure out how to solve my problem. I want to execute a simple select statement as the following:
SELECT COUNT(*) INTO i FROM TableName.
So far no problem, if I always write an actual table name into the statement. But what I want is a loop around this statement for all tables in my DB, so I have to fill the Tablename from a variable (or systable field):
SELECT COUNT(*) INTO i FROM cTableVar.
So my question is, how can I generate a select sttatement, where my tablename gets filled by a variable?
Thanks in advance
Mav
in fact I feel pretty stupid to ask such a question, but I can't figure out how to solve my problem. I want to execute a simple select statement as the following:
SELECT COUNT(*) INTO i FROM TableName.
So far no problem, if I always write an actual table name into the statement. But what I want is a loop around this statement for all tables in my DB, so I have to fill the Tablename from a variable (or systable field):
SELECT COUNT(*) INTO i FROM cTableVar.
So my question is, how can I generate a select sttatement, where my tablename gets filled by a variable?
Thanks in advance
Mav