SyntaxFix
Write A Post
Hire A Developer
Questions
Your syntax isn't quite right: you need to list the fields in order before the INTO, and the corresponding target variables after:
SELECT Id, dateCreated INTO iId, dCreate FROM products WHERE pName = iName