Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:44:55+00:00 2026-06-14T10:44:55+00:00

I switch between Oracle and SQL Server occasionally, and often forget how to do

  • 0

I switch between Oracle and SQL Server occasionally, and often forget how to do some of the most trivial tasks in SQL Server. I want to manually insert a row of data into a SQL Server database table using SQL. What is the easiest way to do that?

For example, if I have a USERS table, with the columns of ID (number), FIRST_NAME, and LAST_NAME, what query do I use to insert a row into that table?

Also, what syntax do I use if I want to insert multiple rows at a time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:44:57+00:00Added an answer on June 14, 2026 at 10:44 am

    To insert a single row of data:

    INSERT INTO USERS
    VALUES (1, 'Mike', 'Jones');
    

    To do an insert on specific columns (as opposed to all of them) you must specify the columns you want to update.

    INSERT INTO USERS (FIRST_NAME, LAST_NAME)
    VALUES ('Stephen', 'Jiang');
    

    To insert multiple rows of data in SQL Server 2008 or later:

    INSERT INTO USERS VALUES
    (2, 'Michael', 'Blythe'),
    (3, 'Linda', 'Mitchell'),
    (4, 'Jillian', 'Carson'),
    (5, 'Garrett', 'Vargas');
    

    To insert multiple rows of data in earlier versions of SQL Server, use “UNION ALL” like so:

    INSERT INTO USERS (FIRST_NAME, LAST_NAME)
    SELECT 'James', 'Bond' UNION ALL
    SELECT 'Miss', 'Moneypenny' UNION ALL
    SELECT 'Raoul', 'Silva'
    

    Note, the “INTO” keyword is optional in INSERT queries. Source and more advanced querying can be found here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often switch between MonoDevelop on Linux and VS2010 with the same code base
I added a navigation control to switch between views in my app. But some
I often (using the mouse) switch between 1 of 3 favorite folders under my
I am trying to switch between two already started activities in android. I want
I want to switch between 3 pictures fading in and out between them but
Hello is possible to switch between DML commands/operations (Insert,Delete,Update) on Trigger Body?, I try
I want to switch between a couple views with a flick gesture using two
I need to switch between some databases at the same time (using VB.net). As
I want to switch between exactly two values in an SVG animate element. I
I use buffer-menu extensively to switch between buffers. I want to list the buffers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.