06 2015 档案

摘要:自己写的魔方阵算法(只能输出奇数阶)#include int main(int argc, char *argv[]){ int line,col,n,p,i,j; int a[15][15]={0}; p=1; while(p==1) { ... 阅读全文
posted @ 2015-06-24 00:01 明月镇魂 阅读(185) 评论(0) 推荐(0)
摘要:关于子查询中能否用order by子句,有以下两种情况:第一种例如:select a.col1 from a where a.col2 in (select b.col2 from b order by b.col1);这种情况下子查询只是一个集合,并不需要进行ord... 阅读全文
posted @ 2015-06-03 00:31 明月镇魂 阅读(558) 评论(0) 推荐(0)
摘要:第一种写法:update a set (c1,c2,c3) =(select c1,c2,c3 from b where......) where ......;第二种写法比较笨:update test set a= '11 ',b = '22 ' where id=... 阅读全文
posted @ 2015-06-01 00:38 明月镇魂 阅读(1828) 评论(0) 推荐(0)