|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Parsing in SQL
hi
is it possible to do something like i give a text argument to a stored procedure and it handles it like a command or such? for example Code:
CREATE PROCEDURE myproc (tablename CHAR(30)) AS BEGIN SELECT * FROM tablename END; and there the tablename to be "understood" |
|
#2
|
||||
|
||||
|
See this thread
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) |
|
#3
|
|||
|
|||
|
just concactene it as :
Code:
CREATE PROCEDURE myproc (tablename CHAR(30)) AS BEGIN 'SELECT * FROM ' ||:tablename; PUT YOUR EXECUTION CODE HERE... SUSPEND; END; Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Parsing in SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|