add a new column into a database

i'm using a matlab tutorial database i have tried to add new column to salesvolume table by using this code
a=exec(conn,'ALTER TABLE salesVolume ADD Nkey number(30)') but the new column hasn't been added in the original table , so i can't add variables to this column

Respuestas (1)

Titus Edelhofer
Titus Edelhofer el 7 de Feb. de 2012

0 votos

Hi,
if you take a look at a.Message, do you see an error message from the database server?
Titus

1 comentario

nour
nour el 17 de Feb. de 2012
no there isn't any error message
my new column contains the summation of the same row

Iniciar sesión para comentar.

Productos

Preguntada:

el 7 de Feb. de 2012

Editada:

el 15 de Oct. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by