Solved

SQL Statement "SubString" + "Insert Into"

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …

737 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