本文介绍了SQL Server autoInsert语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 嗨有数据表 ID DocumentScanLabelId BookingId NumberOfLables 1 6 21845914 3 2 7 21877297 3 但是如果numberoflables是3那么我需要像 这样的数据然后如果它有5那么我需要插入三行5行要插入 例如 ID DocumentScanLabelId BookingId NumberOfLables 1 6 21845914 3 1 6 21845914 3 1 6 21845914 3 2 7 21877297 3 2 7 21877297 3 2 7 21877297 3 喜欢这个我想要结果集 请帮帮我 代码块添加 - OriginalGriff [/编辑] 解决方案 Hi,hi have table like dataID DocumentScanLabelId BookingId NumberOfLables 1 6 21845914 3 2 7 21877297 3 But i need the data likeif numberoflables is 3 then i need three rows to be inserted if it has 5 then 5 row to be insertedfor exampleID DocumentScanLabelId BookingId NumberOfLables 1 6 21845914 31 6 21845914 3 1 6 21845914 32 7 21877297 32 7 21877297 32 7 21877297 3Like this i want result setPlease help me out[edit]Code block added - OriginalGriff[/edit] 解决方案 这篇关于SQL Server autoInsert语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-16 09:45