?
Solved

SQL Statement "SubString" + "Insert Into"

Posted on 2008-10-21
2
Medium Priority
?
920 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
[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 39

Accepted Solution

by:
BrandonGalderisi earned 1000 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

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

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

'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 …
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

777 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