Ver Mensaje Individual
  #10 (permalink)  
Antiguo 03/11/2009, 09:00
jc3000
 
Fecha de Ingreso: junio-2007
Mensajes: 891
Antigüedad: 16 años, 10 meses
Puntos: 43
Respuesta: Oracle retorna una sola columna

Pues no sé, pero mira

Código:
SQL*Plus: Release 8.0.5.0.0 - Production on Mar Nov 3 15:55:51 2009

(c) Copyright 1999 Oracle Corporation.  All rights reserved.


Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create table prueba_jc3000
  2  (
  3  CODIGO VARCHAR2(6 CHAR) ,
  4  NUMERO NUMBER(5),
  5  NOMBRE VARCHAR2(40 CHAR),
  6  FECHA TIMESTAMP,
  7  ESTADO NUMBER(1)   
  8  );

Tabla creada.

SQL> insert into prueba_jc3000
  2  values
  3  ('1',1,'carlos',sysdate,1);

1 fila creada.

SQL> commit;

Validación terminada.

SQL> select * from prueba_jc3000;
select * from prueba_jc3000
              *
ERROR en línea 1:
ORA-03115: unsupported network datatype or representation


SQL> select codigo from prueba_jc3000;

CODIGO
------
1

SQL> select nombre from prueba_jc3000;

NOMBRE
----------------------------------------
carlos

SQL> select codigo,nombre from prueba_jc3000;

CODIGO NOMBRE
------ ----------------------------------------
1      carlos

SQL> drop table prueba_jc3000 purge;

Tabla borrada.

SQL> create table prueba_jc3000
  2  (
  3  CODIGO VARCHAR2(6 CHAR) ,
  4  NUMERO NUMBER(5),
  5  NOMBRE VARCHAR2(40 CHAR),
  6  FECHA date,
  7  ESTADO NUMBER(1)   
  8  );

Tabla creada.

SQL> insert into prueba_jc3000
  2  values
  3  ('1',1,'carlos',sysdate,1);

1 fila creada.

SQL> commit;

Validación terminada.

SQL> select * from prueba_jc3000;

CODIGO    NUMERO NOMBRE                                   FECHA       ESTADO
------ --------- ---------------------------------------- -------- ---------
1              1 carlos                                   03/11/09         1

SQL> select codigo from prueba_jc3000;

CODIGO
------
1

SQL> select nombre from prueba_jc3000;

NOMBRE
----------------------------------------
carlos

SQL>  select codigo,nombre from prueba_jc3000;

CODIGO NOMBRE
------ ----------------------------------------
1      carlos

SQL> drop table prueba_jc3000 purge;

Tabla borrada.

SQL>