Questions tagged as 'pl-sql'

1
answer

C # - Check if dates are missing in the selected date range

I have the following SQL SELECT dt_finished::date AS "DataFinalizacao", count(DISTINCT tba.id_batches) AS "Quantidade Total" FROM tb_batches AS tba INNER JOIN tb_routes tro ON (tro.fk_id_products = tba.fk_id_products AND tro.fk...
asked by 08.12.2017 / 18:19
1
answer

Error executing function in PL / SQL

Code CREATE OR REPLACE FUNCTION BuscaNome RETURN t_name IS t_name VARCHAR(20); BEGIN SELECT T.DS_TURMA INTO t_name FROM TURMA T WHERE T.CD_TURMA = 13; RETURN t_name; END; Error:    Error: PL / SQL: Compilation unit an...
asked by 22.01.2018 / 19:18
1
answer

Return Oracle Timestamp

I want to convert a date to a number, a timestamp. Within a select I need to return the timestamp beyond it. Query example: Select sysdate, TIMESTAMP_DE_SYSDATE from dual Timestamp is a time stamp (or time stamp) that is a st...
asked by 03.10.2017 / 14:47
1
answer

How to change a table indicating that the data of a certain field can only vary from date 1 to date 2?

I have a table called "LOC_VEICULO" where the vehicle data is contained. In it I have the following field: DT_FABRICATION (DATE), where the manufacturing dates of the vehicles are stored. I need to change the vehicles, indicating the dates of...
asked by 10.09.2017 / 05:25
1
answer

How do I prepare the packages in oracle?

How do I make a query (PL / SQL) to list a specific Package in the database (Oracle)?     
asked by 07.11.2016 / 14:08
2
answers

Insert CSV file data into pl / sql database using VB.NET

I am reading a csv file through a Console Application, and to this point it is returning me correctly. Now I'm having trouble understanding how to include each field in a Bank column. This is the code I have so far. Public Function LerC...
asked by 09.11.2015 / 11:11
1
answer

Check if CONSTANT exists in the Package

I have a Package: CREATE OR REPLACE PACKAGE LETRAS AS possuiA CONSTANT BOOLEAN NOT NULL := TRUE; possuiB CONSTANT BOOLEAN NOT NULL := TRUE; possuiC CONSTANT BOOLEAN NOT NULL := TRUE; possuiD CONSTANT BOOLEAN NOT NULL :=...
asked by 21.10.2014 / 22:40
1
answer

Database changing accent by "?"

In my PL / SQL all accents are being replaced by "?". Example of a comment from a table:    Flag of legal device to be ???? used in the term of business or not. Possible values: 1 - Yes or 0 - No. Default: 1 When I create a table direc...
asked by 01.11.2018 / 14:52
1
answer

Exit command in PL / SQL

I have noticed that the command exit works the same as a break, it stops executing the current block and passes to the next one, but which command can stop the whole procedure in PL / SQL?     
asked by 05.08.2018 / 20:11
1
answer

Return range of Oracle PL / SQL strings

Good morning! I need to return the value inside a string that is between a range of | in the select below I can get the value from the first | . The expected result is: 83,1 SELECT SUBSTR('1410,00|83,1|39,29|1410m|',...
asked by 19.07.2018 / 13:16