This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Whats wrong with Syntax

 
Laurel Hardy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tmpsql="Select st,ed from Queens "
+"Where Pr=" + lPr + "and SSN=" + lssn;

where lpr and lssn are of Type Int.
The Columns Pr and SSN are also of the Type int.
 
Murat Balkan
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tmpsql="Select st,ed from Queens "
+"Where Pr=" + lPr + " and SSN=" + lssn;
(there must be a space before and)
 
Laurel Hardy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.....Balakan..It worked Man....What a catch...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic