阅读背景:

sql server:如何大量替换查询结果中的字段

来源:互联网 

Heres the situation, a database was created and not normalized. The table LUT_ProductInfo contains a field called flavor that is populated with an actual flavor name (ie Coke Classic). I created a lookup table LUT_Flavors with all of the flavor names complete with PKs. I need to replace all of the flavor names in LUT_Product info with the corresponding foreign key from the LUT_Flavors table. At the moment, the flavor names in each table are identical so the swap should be clean.Heres the situation, a database was created and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: