 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
TSAISUN
註冊時間: 2006-02-12 文章: 12
第 1 樓
|
發表於: 星期日 七月 22, 2007 7:16 pm 文章主題: vfp6可以,vfp9不行 |
|
|
大俠們請幫忙
下列這段在vfp6執行正常,在vfp9就會掛掉,請問哪裡錯了
mon1=subs(dtoc(date()),1,2)+subs(dtoc(date()),4,2)
select serv.w_no, worker.emp_nm, count(*) as get_ct;
from serv, worker;
where serv.w_no = worker.w_no and;
not empty(serv.serv_date) and;
(subs(dtoc(serv_date),1,2)+subs(dtoc(serv_date),4,2)=subs(mon1,1,2)+subs(mon1,3,2) or ;
subs(dtoc(serv_date2),1,2)+subs(dtoc(serv_date2),4,2)=subs(mon1,1,2)+subs(mon1,3,2));
group by serv.w_no;
order by 1;
into cursor bba |
|
回頂端 |
|
 |
janlih
註冊時間: 2003-11-04 文章: 69
第 2 樓
|
發表於: 星期一 七月 23, 2007 8:41 am 文章主題: |
|
|
參考 set enginebehavior 70
預設為 set enginebehavior 90 |
|
回頂端 |
|
 |
impotence

註冊時間: 2005-02-21 文章: 135 來自: Hong Kong
第 3 樓
|
發表於: 星期一 七月 23, 2007 9:21 am 文章主題: |
|
|
看樣子 .. 應該是 group by 的原因 ....
請看一看 , VFP9 的 help ..... _________________ 一個常常忘記 Command 的人 ! |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|