Article View: comp.lang.basic.visual.misc
Article #429Re: Syntax Question?
From: Stig Joar Sanden
Date: Tue, 06 Apr 1999 00:00
Date: Tue, 06 Apr 1999 00:00
31 lines
1852 bytes
1852 bytes
This is written with the eyes almost closed, but i think it will work :) sql = "SELECT DISTINCT songs.Song FROM songs WHERE songs.artist LIKE '" & Variable & "'" Remark that after songs.artist LIKE there is ' " after Variable & there is " ' " HTH :) Stig Joar Sanden sandman@online.no ICQ: 13557997 Chad Gough skrev i meldingen ... >I have a VB script in an ASP page running a query. > >The SQL code looks like: >sql = "SELECT DISTINCT songs.Song FROM songs WHERE songs.artist = '????' " > >What is the syntax to put a variable where ???? is? >The query works fine if I replace ???? with a value from the database!?!? > >Any help would be appreciated. > >Thanks > >
Technical Details
Message-ID:
<xtcO2.572$l5.2625@news1.online.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ambO2.5836$033.1763@news.rdc1.il.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,27ae79593ba8da5c X-Google-Attributes: gid110e3b,public X-Google-Thread: 108db9,27ae79593ba8da5c X-Google-Attributes: gid108db9,public X-Google-Thread: 10ce47,27ae79593ba8da5c X-Google-Attributes: gid10ce47,public X-Google-Thread: 1477ed,27ae79593ba8da5c X-Google-Attributes: gid1477ed,public X-Google-Thread: fdea5,27ae79593ba8da5c X-Google-Attributes: gidfdea5,public From: "Stig Joar Sanden" <sandman@online.no> Subject: Re: Syntax Question? Date: 1999/04/06 Message-ID: <xtcO2.572$l5.2625@news1.online.no> X-Deja-AN: 463057216 References: <ambO2.5836$033.1763@news.rdc1.il.home.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 923358173 130.67.36.193 (Tue, 06 Apr 1999 02:22:53 MET DST) Organization: Telenor Online Public Access NNTP-Posting-Date: Tue, 06 Apr 1999 02:22:53 MET DST Newsgroups: comp.lang.basic.visual.misc,cz.comp.microsoft.asp,fidonet.asp,microsoft.public.inetexplorer.ie5beta.programming.dhtml.authoring,microsoft.public.inetserver.iis.activeserverpages