update POInStockEntry set FAuxNotPassQty=不合格数量 where FInterID=(select FInterID from POInStock where FBillNo ='收料通知单号' )/* POInStockEntry为表体, POInStock为表头,FAuxNotPassQty ,FNotPassQty收料通知单不合格数量,FQtyPass,FAuxQtyPass为合格数量*/ /*数据库不会自己减数哦,修改了不合格数量,那么也需要修改
跟踪语句_业务单据_BOM select * from t_TableDescription where Ftablename like '%ICBOM%' order by FFieldName order by FFieldName declare @p2 int , select @p2 INSERT INTO ICBomChild (FInterID,FEntryID,FBrNo,FItemID,FAuxPropID, FUnitID,FMaterielType,FMarshalType
public class Test { public static void main(String[] args) { System.out.println(recursive(30)); } public static int recursive(int i){ // int a0=1; // int a1=1; // int a2=a1+a0; // int a3=a2+a1; if (i==0||i==1) return 1; return recursive(--i)+recursiv
var num=6; function Girl(beautifulScore){ this.beautifulScore=beautifulScore; } var girls=[]; for (var i = 0; i < num; i++) { girls[i]=new Girl(Math.floor(Math.random()*40+60)); //Math.floor(Math.random()*40+60得到一个60-99的数值,JS没有PHP的range()这样的函数 } girl
纯脑记,但应该不会差太多 20150901腾讯CDC面试(初级外包岗) 0826的上午先用QQ进行了初步沟通,要求做一个不考虑AI的井字棋游戏,0830上午E-mail上交了做好的DEMO,然后等了几天就收到了0901的面试邀请. var a = 1; setTimeout(function(){ console.log(a); a = 2; }); a = 3; 问输出值是多少? 2.display的值有哪些?以及它们的特性 3.position的值有哪些?以及他们的特性 4.各用两种方法实现
centos6.5:/root/test#cat a2.pl use Net::SMTP; use LWP::UserAgent; use HTTP::Cookies; use HTTP::Headers; use HTTP::Response; use Encode; use JSON; use File::Temp qw/tempfile/; use HTTP::Date qw(time2iso str2time time2iso time2isoz); use Data::Dumper;
给定一个数列a1,a2,a3,...,an和m个三元组表示的查询,对于每个查询(i,j,k),输出ai,ai+1,...,aj的升序排列中第k个数. #include <iostream> using namespace std; #define SIZE 20 #define M 3 typedef struct Elem { int i, j; int k; } ELEM; /* 表示一个元素的三元组结构 */ int getMedian(int* arr, int low, int hi
有两个序列A和B,A=(a1,a2,...,ak),B=(b1,b2,...,bk),A和B都按升序排列.对于1<=i,j<=k,求k个最小的(ai+bj).要求算法尽量高效. int *min_k(int *A, int *B, int len1, int len2, int k) { if (A == NULL || B == NULL || k <= 0) return NULL; int i, j; int *tmp = new int[k]; i = len1; j = len