Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

SQL Format

 
   Database Help (Home) -> Visual Basic RSS
Related Topics:
sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table and there a column wich is data type All data in this column is in form So why when i run .asp page with simple query to..

arrays - is there a way to the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to I have a table that contains for work Contained in the table are these are groupings of machining

Scroll Bars - Is there a way to find the size of on a system using Visual Basic 6.0? I know how to look and change them on the display but I don't know how to access that from within Visual Basic.
Next:  Visual Basic: Package & Deployment wizard: Update a database  
Author Message
user3073

External


Since: Jan 17, 2005
Posts: 3



(Msg. 1) Posted: Thu Feb 17, 2005 8:40 am
Post subject: SQL Format
Archived from groups: comp>lang>basic>visual>database (more info?)

Hi Guys,

I am trying to get a selection of fields from a DB.

I can select specific records using

sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
rs.open sql,cn

Not problem. But I want to able to retireve records say starting with BR.
SO when I try

sql = "SELECT * FROM cds WHERE Artist = 'br*'"
rs.open sql,cn

It just skips all files.

Please help.

I have a Access back end using Jet.

Many Thanks

Gavin.

 >> Stay informed about: SQL Format 
Back to top
Login to vote
Jan Hyde

External


Since: Nov 06, 2003
Posts: 15



(Msg. 2) Posted: Thu Feb 17, 2005 8:40 am
Post subject: Re: SQL Format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"gavin" <##gavin@djapex.f9.co.uk##NOSPAM>'s wild thoughts
were released on Thu, 17 Feb 2005 12:59:51 GMT bearing the
following fruit:

 >Hi Guys,
 >
 >I am trying to get a selection of fields from a DB.
 >
 >I can select specific records using
 >
 >sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
 >rs.open sql,cn
 >
 >Not problem. But I want to able to retireve records say starting with BR.
 >SO when I try
 >
 >sql = "SELECT * FROM cds WHERE Artist = 'br*'"
 >rs.open sql,cn
 >
 >It just skips all files.
 >
 >Please help.

SELECT * FROM cds WHERE Artist MATCHES 'br*'

SELECT * FROM cds WHERE Artist LIKE 'br%'

J


 >I have a Access back end using Jet.
 >
 >Many Thanks
 >
 >Gavin.
 >


Jan Hyde (VB MVP)

--
A man is incomplete until he is married.
After that, he is finished.

(Zsa Zsa Gabor)

[Abolish the TV Licence - <a style='text-decoration: underline;' href="http://www.tvlicensing.biz/]" target="_blank">http://www.tvlicensing.biz/]</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: SQL Format 
Back to top
Login to vote
user3073

External


Since: Jan 17, 2005
Posts: 3



(Msg. 3) Posted: Thu Feb 17, 2005 10:40 am
Post subject: Re: SQL Format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks thats great



"Jan Hyde" <StellaDrinker.RemoveThis@REMOVE.ME.uboot.com> wrote in message
news:bl59115d0h5dn5dl4v029p6omabinmeg66@4ax.com...
 > "gavin" <##gavin@djapex.f9.co.uk##NOSPAM>'s wild thoughts
 > were released on Thu, 17 Feb 2005 12:59:51 GMT bearing the
 > following fruit:
 >
  >>Hi Guys,
  >>
  >>I am trying to get a selection of fields from a DB.
  >>
  >>I can select specific records using
  >>
  >>sql = "SELECT * FROM cds WHERE Artist = 'bryan'"
  >>rs.open sql,cn
  >>
  >>Not problem. But I want to able to retireve records say starting with BR.
  >>SO when I try
  >>
  >>sql = "SELECT * FROM cds WHERE Artist = 'br*'"
  >>rs.open sql,cn
  >>
  >>It just skips all files.
  >>
  >>Please help.
 >
 > SELECT * FROM cds WHERE Artist MATCHES 'br*'
 >
 > SELECT * FROM cds WHERE Artist LIKE 'br%'
 >
 > J
 >
 >
  >>I have a Access back end using Jet.
  >>
  >>Many Thanks
  >>
  >>Gavin.
  >>
 >
 >
 > Jan Hyde (VB MVP)
 >
 > --
 > A man is incomplete until he is married.
 > After that, he is finished.
 >
 > (Zsa Zsa Gabor)
 >
<font color=purple> > [Abolish the TV Licence - <a style='text-decoration: underline;' href="http://www.tvlicensing.biz/]</font" target="_blank">http://www.tvlicensing.biz/]</font</a>>
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: SQL Format 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]