Path: news.mathworks.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!news.mathforum.org!not-for-mail
From: pierca <pierca85@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Using a variable in sql query: WHERE, IN
Date: Thu, 15 Jan 2009 05:48:12 EST
Organization: The Math Forum
Lines: 11
Message-ID: <7302393.1232016523112.JavaMail.jakarta@nitrogen.mathforum.org>
References: <gf7aru$aq5$1@fred.mathworks.com>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1232016523 31156 144.118.30.135 (15 Jan 2009 10:48:43 GMT)
X-Complaints-To: news@news.mathforum.org
NNTP-Posting-Date: Thu, 15 Jan 2009 10:48:43 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:511724


Hi all,
It's my first post here and I don't speak english very well, hope you understand!
I have Vincent's same problem but if I try the following 

> num = 'IT001E082';
> e = exec(conn,'SELECT * FROM Mytable WHERE "Pod No_" IN(',num,')' );

written in a M file Matlab says that there are Too many input arguments I think because it takes G as an argument of exec.
Does anyone here have a solution or a suggestion?

Thank you for reading.