找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 3528|回复: 4

[求助] 如何删除不用的会计科目,同时删除多个的?

[复制链接]
发表于 2019-3-1 19:13:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
DELETE FROM code where ccode=  删除多个科目语句怎么写?谢谢哈
发表于 2019-3-2 10:25:19 | 显示全部楼层
DELETE FROM code where ccode IN ('1001','1002','1003','1004')

点评

xiexie feichang  详情 回复 发表于 2019-3-2 13:34
回复 点赞 拍砖

使用道具 举报

 楼主| 发表于 2019-3-2 13:34:33 | 显示全部楼层
HLJ_C 发表于 2019-3-2 10:25
DELETE FROM code where ccode IN ('1001','1002','1003','1004')

xiexie feichang
回复 点赞 拍砖

使用道具 举报

发表于 2019-3-8 21:26:04 | 显示全部楼层
select * from code where ccode ='111'
select top 1 ccode from GL_accvouch where ccode='111'
select top 1 ccode from GL_accsum where ccode='111' and (mb0 ormd0 or
mc0 or me0 or mb_f0 or md_f0 or mc_f0 or me_f0or nb_s0 or
nd_s0 or nc_s0 or ne_s0)
select top 1 ccode from GL_accass where ccode='111' and (mb0 ormd0 or
mc0 or me0 or mb_f0 or md_f0 or mc_f0 or me_f0or nb_s0 or
nd_s0 or nc_s0 or ne_s0)
select top 1 * from dsigns where ccode='111' order by ccode
select top 1 * from GL_bfreq where ccode='111' order by ccode
select top 1 * from GL_bautotran where ccode='111' order by ccode
select top 1 * from GL_bmulti where ccode='111' order by ccode
select top 1 * from GL_bmulti where ccodes='111' order by ccodes
select top 1 * from GL_bdigest where ccode='111' order by ccode
select top 1 ccode from GL_mcodeused where ccode='111'
select top 1 * from RP_bankrecp where ccode='111' order by ccode
select top 1 * from RP_cheque where ccode='111' order by ccode
select top 1 * from code where ccode='111' order by ccode

这是查询  把  selecet  改成deltet
回复 点赞 拍砖

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-3-29 07:34 , Processed in 0.042199 second(s), 12 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表