Solved

SQL Statement "SubString" + "Insert Into"

Posted on 2008-10-21
2
906 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
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.​
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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