Solved

SQL Statement "SubString" + "Insert Into"

Posted on 2008-10-21
2
899 Views
Last Modified: 2012-05-05
Dear Expert,

I am writing a access program, and would like to using the SQL statement to lookup some of the datas.

Insert Into rawdata(test)
Select SubString(sub_department,2,2) from rawdata

Any one can tell me any problem on it?
Because when i run this statement, error message was pop-up...even i try to change the SubString to SubStr and the problem also exists.

Thanks.

Ricky.
0
Comment
Question by:Rickyyy
2 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 250 total points
ID: 22769666
I believe the access equivalent of substring is mid().

Insert Into rawdata(test)
Select mid(sub_department,2,2) from rawdata
0
 

Author Closing Comment

by:Rickyyy
ID: 31508419
Thanks..
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

15 Experts available now in Live!

Get 1:1 Help Now