我有像这样的价值观 1 第2 第3 第四 如何使用sql语句只取数字并将它们放在一个表中,以便我只有1,2,3,4
现在我正在尝试下面的代码
DoCmd.RunSQL "UPDATE DEDValidation LEFT JOIN ReqInput ON DEDValidation.[Plan Code] = ReqInput.[Plan Code] SET DEDValidation.[Expected Plan Effective Day] =ReqInput.[Start Day] WHERE DEDValidation.[DED Row Found] = 'Yes'"
DoCmd.RunSQL "Update DEDValidation Set DEDValidation.[Expected Plan Effective Day] = REPLACE(DEDValidation.[Expected Plan Effective Day], '*st', '') WHERE DEDValidation.[Expected Plan Effective Day] LIKE '*st'"
第一行导入代码,第二行应该替换字母' st'有空白但不起作用
答案 0 :(得分:1)
试试这个。更改替换功能:
REPLACE(DEDValidation.[Expected Plan Effective Day], 'st', '')
希望它可以帮到你!