Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Upper->
- lower->
- Intpcap->
- Substr->
- INSTR->select instr(email,'@') from estudiante; buscar un caracter en especifico y si existe devuelve su posicion, sino, cero.
- REPLACE-> select replace(nombre,'ñ','n') reemplaza informacion que no se quiere mostrar, por ejemplo los de la tarjeta de credito
- DECODE->Un if para cuando se cumple tal cosa, meter mas informacion. Ex select decode(estado_civil,'s',soltero...etc)
- RTRIM-> BORRAR ESPACIOS EN BLANCO select rtrim(nombre,'s');
- LTRIM->?
- RAID->
- LPAD->select lpad(codigo,10,'0') pone 10 ceros delante de una cantidad, o en este caso codigo.
- dual->para hacer selects de pruebas, sin usar tablas-> SELECT RPAD('CADENA',10,'*') AS PRUEBA
- FROM DUAL;
- NVL-> Para cuando son nulos, devolver un dato(numero o letra) deseado. select (null(precio,0)* null(cantidad,1))
- where nvl(estado,'a')='a'
- SYSDATE-> Da la fecha del dia.
- TO_DATE('01/04/2016','DD/MM/YYYY')
- SELECT LOWER(NOMBRE)||' '||LOWER(APELLIDO)
- FROM ESTUDIANTES
- WHERE SUBSTR(CEDULA,1,3) IN('047','402')
- DEVJOKER.COM(FUNCIONESDE PL-SQL)
- SELECT ID_CAMIONES,ID_CAMIONERO,C.NOMBRE CI.NOMBRE,CI.ID_POSTAL_C,P.ID_PAQUETE
- FROM CAMIONERO C, CAMIONES CA, CIUDAD CI, PAQUETE P, TRANSP_PAQUETE TP, TRANSPORTE T
- WHERE C.ID_CAMIONERO=CA.ID_CAMIONERO AND T.ID_TRANSPORTE=TP.ID_TRANSPORTE AND TP.ID_PAQUETE=P.ID_PAQUETE AND P.ID_POSTAL_C=CI.ID_POSTAL_C;
Add Comment
Please, Sign In to add comment