vfp上机题:为学生表增加一个是否转专业字段(字段名为zzy,类型为逻辑型)并为其赋值:如果院系专业代码(yxzydm字段)的前四位与学号字段中第3-6位不一致,则zzy字段的值设置为T
答案是说:在表设计器里单击插入按钮,插入zzy字段,并在命令窗口中执行如下命令:
update student set zzy=T where substr(yxzydm,1,4)!=substr(xh,3,6)
急急急!!!怎样在vfp中新增表字段??
答案:2 悬赏:80
解决时间 2021-12-22 06:17
- 提问者网友:控制庸俗
- 2021-12-21 20:49
最佳答案
- 二级知识专家网友:闲懒诗人
- 2021-12-21 20:58
use 学生表
modify structure
操作完成后按ctrl+w
正确的命令应该是
update student set zzy=.T. where substr(yxzydm,1,4)!=substr(xh,3,6)
modify structure
操作完成后按ctrl+w
正确的命令应该是
update student set zzy=.T. where substr(yxzydm,1,4)!=substr(xh,3,6)
全部回答
- 1楼网友:佛说妍妍很渣
- 2021-12-21 21:52
alter table student add zzy l
repl all zzy with .t. where substr(yxzydm,1,4)!=substr(xh,3,6)
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |