Solved

Adding Data to MS SQL 2005 Table

Posted on 2007-03-21
2
762 Views
Last Modified: 2008-02-26
Hello,

I have a table in MS SQL 2005 with a column called "itemnumbers". I would like to add to each item number in that column 00 so that it takes an item number like 12345 and makes it 0012345. Can someone let me know what SQL syntax I should use for this? I am just getting started with MS SQL and not sure how to do this. I appreciate your time in advance.

Thank you,
conquerdev
0
Comment
Question by:conquerdev
2 Comments
 
LVL 3

Accepted Solution

by:
cognos79 earned 500 total points
ID: 18766473
when you are doing the insert into the table append 00 to that field value and do the insert.
0
 

Author Comment

by:conquerdev
ID: 18766880
Thank you!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now