SyntaxFix
Write A Post
Hire A Developer
Questions
If using sqlplus you can define a variable thus:
define <varname>=<varvalue>
And you can display the value by:
define <varname>
And then use it in a query as, for example:
select * from tab1 where col1 = '&varname';