Questions tagged as 'oracle'

1
answer

Column that receives a result if the condition is true

SELECT DISTINCT P.CD_PACIENTE , P.NM_PACIENTE , DECODE (P.TP_SEXO, 'M', 'MASCULINO', 'F', 'FEMININO', 'I', 'INDEFINIDO') SEXO , TRUNC(P.DT_NASCIMENTO) DT_NASCIMENTO , (SELECT FN_IDADE (P.DT_NASCIMENTO,...
asked by 02.05.2018 / 22:00
1
answer
1
answer

How to disable a constraint in ORACLE?

I have a table where two specific fields together can not have the same values. BELIEVE what they are: NUM_DIVISION COD_INDICATOR Assuming I have this data: NUM_PERIODO_LANCAMENTO = 1 , COD_INDICADOR = 1 , COD_CR_PERIODO = 1 NUM...
asked by 02.06.2014 / 17:05
2
answers

Select to display the column names of a table?

Tables col1| col2| col3| ...| coln 1 | 2 | 3 | ...| n Display the name: col1 col2 col3 ... coln     
asked by 07.03.2018 / 21:00
2
answers

Select in Oracle - Java

I'm trying to run a connection test in the bank and extract some information, just for the same study, however I'm running into the following error: Exception in thread "main" java.sql.SQLException: ORA-00923: palavra-chave FROM não localizada...
asked by 14.01.2016 / 13:13
1
answer

MySQL beginner with great difficulty [closed]

Well, I wanted to start learning MySQL , but I'm not getting started, I do not understand the software or anything, web tutorials do not talk about MySQL on Mac , only on Windows . I downloaded MySQL on Oracle's w...
asked by 06.11.2015 / 08:23
1
answer

update nls_database_parameters Oracle

I need to change the parameters nls of Oracle, putting the characteristics of the image below: I've tested a lot of tips, but it always says I have insufficient privileges. These are my settings: NLS_LANGUAGE AMERICAN NLS...
asked by 18.09.2018 / 12:50
1
answer

SQL SCRIPT WITH ERROR

For the sake of curiosity I got a story from my second half of ADS and this is a SQL script based on 3 tables: ALUNO , CLASSE , MATRICULA . I made the script according to the statement, but my script does not execute, the fo...
asked by 21.12.2018 / 14:21
1
answer

ORACLE USERS

Good afternoon. I have two owners on my oracle example Owner "X" and the other owner "Y". Where each one has its own tables, but I want the owner "X" to be able to update, insert and delete some tables of the owner "Y". Is it possible?     
asked by 14.08.2018 / 21:48
1
answer

I need explanations of OUT and PL / SQL INOUT and Mysql procedure

Well, I put PL / SQL and mysql because these two modes have procedures in both Oracle and mysql, but anyway. The IN mode I understood that it works like a constant, it is passed through the parameter and can not be changed inside the procedure ....
asked by 10.07.2018 / 21:07