Hi,Perlmonks
I use Win32::ODBC access to SQLServer,there is a section
of my codes below.
#use CGI.pm to get user's input...
#connect to DSN...
$SQL=<<SQL;
select * from st
where st_name='$name'
SQL
if($dsn->Sql($SQL)){print $dsn->Error();}
...
$name is provided from user.If some guy input(just a sample) x' delete st where st_name not like '%''% ,
he will delete all in my table!
My question is
Is there a tactful way to deal with the codes for SQL in
advance?
Many Thanks!