Solved

Adding Data to MS SQL 2005 Table

Posted on 2007-03-21
2
776 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

726 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