I have some MariaDB SQLs that are called by a bash script, this script set the start and end dates for the queries, but now the project will use Oracle DB.
So, I have something like this in MariaDB SQL:
SET @date_start := '2000-01-01';
SET @date_end := '2001-01-01';
SELECT * FROM user WHERE birth BETWEEN @date_start AND @date_end;
And I couldn't find anything like that in Oracle SQL, already tried DECLARE
, DEFINE
, WITH
, but nothing works