How to insert multiple rows in single insert statement?

前端 未结 3 1563
执念已碎
执念已碎 2020-12-11 21:09

I have 5 text box contaning 5 contact no of a particular person. I want to insert those 5 contact no in tblContact(person_id|contact_no). Can I insert these 5

3条回答
  •  难免孤独
    2020-12-11 21:46

    you can insert your 5 records in 1 insert statements.

    like: insert into tblContact(person_id, contact_no) values(1,'145566'),(2,'233366'),(3,'564666')

提交回复
热议问题