Hi anonymous user ,
Welcome to Microsoft Q&A platform and thanks for posting your question.
Kindly try with the below query : "Select * from TableName where column1='{$Code}'"
since value present in the parameter 'Code' is a string, it needs to be enclosed within a single quotes to form the query as select * from TableName where column1='CAF1'
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
button and take satisfaction survey whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators