I have a file Table.out having table name like this
Table_Emp
Table_Exp
Table_Fcr
To show first 10 rows .. I' wrtng a script like this ..
#!/bin/ksh
cat /tmp/table.out|while read -r table vbar1
do
<connect to db>
then
select * from $table limit 10; > /tmp/1.out
done
[/CODE
Plz help ..But This is resulting in error like this
ERROR: 'select * from limit 1;'
error ^ found "LIMIT" (at char 16) expecting an identifier found a keyword