請問SQL裹面有沒有,只要我知道當前ID,把此ID所有字段的數據復制一份,插入到同樣字段的表中或者當前表(都無關緊要).謝謝
這是我的方法:
Insert into tableName(fields1,fieldsN...) select fields1,fieldsN... from tableName where id = parentID
請問SQL裹面有沒有,只要我知道當前ID,把此ID所有字段的數據復制一份,插入到同樣字段的表中或者當前表(都無關緊要).謝謝 這是我的方法: Insert into tableName(fields1,fieldsN...) select fields1,fieldsN... from tableName where id = parentID 這種方法是可以,但是有多少個字段就得寫多少個..太煩瑣了,有沒好的方法不用知道有多少個字段只需知道當前ID就行????