sql - Oracle how to cast result of a select into a number as data for the next query? -
Suppose:
select from where id = (select ID from B); Where there is a column a in the id table, and there is a varchar column in the id table < Code> b . How do I convert the result of to B to in a number? It looks like this:
choose from where id = to_number ((Select ID from B));
choose from where id = (to_number (id)) select from ); BTW, if you have more than 1 or 0 rows in b then you = operator will be IN
Comments
Post a Comment