1
sqlite 데이터베이스에 여러 행을 삽입하려고합니다. SqliteOpenHelper 클래스를 만들고 데이터베이스와 테이블을 만들었습니다. 이제 데이터베이스에 여러 행을 삽입해야합니다.sqlite 데이터베이스에서 한 번에 여러 행 삽입
한 번에 5 개의 행을 삽입한다고 가정하면,이를 수행하는 가장 효율적인 방법은 무엇일까요?
INSERT INTO `events` (`_id`, `event_name`, `start_date`, `end_date`, `event_city`, `event_state`, `event_pic`, `event_desc`, `wiki_url`, `event_cat`) VALUES
(1, 'Purna Kumbh Fair 2013', '2013-01-27', '2013-03-10', 'Allahabad', 'Uttar Pradesh', 'img/kumbh.jpg', 'Kumbh Fair is a mass Hindu pilgrimage of faith in which Hindus gather at a sacred river for a bath in the river. It is held every third year at one of the four places by rotation: Haridwar, Prayag (Allahabad), Nasik and Ujjain.', 'http://en.wikipedia.org/wiki/Kumbh_Mela', 2),
(2, 'Taj Mahotsav 2013', '2013-02-18', '2013-02-27', 'Agra', 'Uttar Pradesh', 'img/taj-mahotsav.jpg', 'aj Mahotsav is an annual 10 day (from 18 to 27 February) event at Shilpgram in Agra, India. Every year in February tourists flock to Agra for this mega event, just a stone throw from the majestic Taj Mahal. This festival invokes the memories of old Mughal era and nawabi style prevalent in Uttar Pradesh in 18th and 19th centuries.', '', 0),
(3, 'Khajuraho Dance festival', '2013-02-01', '2013-02-08', 'Khajuraho', 'Madhya Pradesh', 'img/Khajuraho-Dance-Festival.jpg', 'One week long festival of classical dances held annually against the spectacular backdrop of the magnificently lit Khajuraho temples in Chhatarpur district of Madhya Pradesh.', '', 0),
(4, 'Holi - Festival of Colors', '2013-03-26', '2013-03-27', 'National', 'Festival', 'img/holi.jpg', 'Holi - The Festival of Colors marks the beginning of ceremonies being the first festival in the Hindu calendar. On this day, people greet each other with colours and celebrate the occasion with much gaiety and excitement.', '', 0),
(5, 'Elephant Festival', '2013-03-26', '2013-03-26', 'Jaipur', 'Rajasthan', 'img/elephant.jpg', 'Jaipur Elephant Festival, perhaps the only festival where Elephants are given prime importance.During the festival, Jaipur comes alive with elephants, dancers and musicians which draw visitors from all over the world.', '', 0),
나는 데이터베이스에 단일 레코드를 추가 할 것이라고 생각합니다 ... 나는 한 번에 500 개가 넘는 레코드를 삽입 할 수있는 SQL 파일과 쿼리를 가지고 있습니다. 한 번에 500 개 이상의 값을 삽입하는 효율적인 방법이 있습니다 ... 그 같은 bulkinsert .. – divyang7
500 개 이상의 레코드를 삽입 할 수있는 옵션이 없다고 생각합니다. 500 개 레코드를 삽입하기 위해 쿼리를 500 번 실행했습니다. .. –
어떻게 그걸 할 수 ... 이걸 내게 안내 할 수 ... – divyang7