echo "enter database name"
read dbname
echo "enter schema name"
read schema_name
db2 connect to $dbname
table=`db2 -x "select name from sysibm.systables where creator='$schema_name'"`
echo $table
for i in $table
do
echo $i
db2 "delete * from table $i"
done
Thanks & Regards
Sanjay kumar Akasapu,
Jr.Database Administrator,
Miracle Software Systems India(P)Ltd,
Mail:saka...@miraclesoft.com,
Mobile:
phone:248-233-31854.
------- Original Message -------
From : malla kishore[mailto:mallak...@gmail.com]
Sent : 8/29/2007 2:49:53 AM
To : mirac...@googlegroups.com
Cc :
Subject : RE: Post1-How to delete records from tables in one schema