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

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2012년 2월 7일

0 개 추천

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

댓글 수: 1

nour
nour 2012년 2월 17일
no there isn't any error message
my new column contains the summation of the same row

댓글을 달려면 로그인하십시오.

카테고리

질문:

2012년 2월 7일

편집:

2013년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by