Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    1

    Unanswered: Regarding Bulk insert

    Hai friends,

    Am doing a project in java,there i need to implement an attendance concept.For e.g if there are 60 students,all their records have to be added at a sec..how to use the querry to proceed..can any one get a sample query for this example

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    you did not give very much information, so i am free to guess
    Code:
    INSERT
      INTO attendance
         ( student_id , attend_datetime )
    VALUES
         (  9 , CURRENT_TIMESTAMP )
       , ( 37 , CURRENT_TIMESTAMP )
       , ( 42 , CURRENT_TIMESTAMP )
       , ...
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •