Ver Mensaje Individual
  #2  
Antiguo 29-09-2005
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.286
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Utiliza un componente TIBQuery (por ejemplo) y en la propiedad SQL coloca lo siguiente:

Código SQL [-]
  CREATE TABLE NEW_TABLE (
      CVEPREGUNTA INTEGER,
      PREGUNTA VARCHAR(150),
      RESP1 VARCHAR(50),
      RESP2 VARCHAR(50),
      RESP3 VARCHAR(50),
      RESP4 VARCHAR(50),
      CORRECTA( VARCHAR(50))
Deberás sustituir el NEW_TABLE por el nombre de la tabla que quieras (ya sea con parámetros o haciendo la sustitución en la cadena SQL directamente).
Luego puedes utilizar ExecSQL para ejecutarla y crear la tabla.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita