I come from a T-SQL (MS SQL Server) background and have things that do not work the same in PL / SQL.
I would like to know how to give a select in PL / SQL scalars.
Examples in MS SQL Server
Example 1:
SELECT 1 + 1
Example 2:
DECLARE @variavel INT = 1
SELECT @variavel
How would I make these examples work in PL / SQL in Oracle SQL Developer?