informix如何用语句批量建form?
informix如何用语句批量建form? 回复 1# ryr1990[ $# -lt 1 ] && { echo "Usage: crtforms database"; exit; }
dbname=$1
echo "Get table information..."
isql -s $dbname << ! |awk '{print substr($0,4)}'>/tmp/tabnames
select "isql -s $dbname -fg "||tabname||' '||tabname||" -t" c from systables where tabid>99 and tabname matches "*"
!
echo
echo "Creatting forms..."
. /tmp/tabnames
echo
rm -f /tmp/tabnames
echo "OK!"
页:
[1]