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