SQL parameter question

Discussion in 'Software' started by Rykard, May 14, 2013.

  1. Rykard

    Rykard Private E-2

    Hi,
    I am trying to use a text string passed as a a parameter to an SP in a where clause. The text param contains something like ' and A.Office='Fred' ' and I want to bolt this on to the back end of an existing where clause..

    select * from Offices A where a.city = 'London' ...<param here>

    how do I go about doing this?

    cheers
    Rich
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds