define s varchar(250); define a int; ON EXCEPTION SET sql_err, isam_err, err_info insert into err values(sql_err,isam_err,err_info); END EXCEPTION WITH RESUME; foreach with hold select school,age into s,a from test--返回school为varchar型,age为int型 insert into p2 values(s,a);--p2表2个字段,一个为varchar型,一个是Int型,正常插入 insert into p1 values(s,a);--p1表2个字段,都是int型,会有异常 end f...
by woo198888882012 - Informix - 2012-12-28 09:26:51 阅读(1919) 回复(1)
大家好: 我想输出所有长20个字母的字符串,只能为a,b,c和d,其中a、b、c的总数小于等于7。以下foreach循环脚本哪里有误?谢谢![code]#!/usr/bin/perl @a = (a,b,c,d); $x=''; for $i1 (@a){ $x .= $i1; for $i2 (@a){ $X .= $i2; for $i3 (@a){ $x .= $i3; for $i4 (@a){ $x .= $i4; for $i5 (@a){ $x .= $i5; for $i6 (@a){ $x .= $i6; for $i7 (@a){ $x .= $i7; for $i8 (@a){ $x .= $i8; $no = &abc($x); next if $no > ...
本帖最后由 lucash 于 2010-05-05 18:45 编辑
[code]
open AA,"<",$ARGV[0];
open BB,"<",$ARGV[1];
my %hash;
foreach(
foreach($this->paginator as $dota): ?>
等级:级 |