我下面的表格与属性SQL问题:如何避免200个If-Else语句?
Table1: [username] [old_profile]
Table2: [old_profile] [new_profile]
Table3: [username] [new_profile] [some_more_attributes]
表2声明重命名规则“old_profile”到“new_profile”(例如,如果old_profile被称为“Banana300”,该new_profile应该叫“Chocolate125”) 。
有谁知道是否有可能用SQL/MS Access Query执行该操作?
如果不是,我将不得不为此任务编写一个外部脚本。
非常感谢。
干杯
编辑:我忘了明确提到,我想从表1和表2表3创建(忽略“some_more_attributes”)。
执行什么?你想达到什么目的? – StevieG