Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alter table add column AFTER in derby database

Tags:

alter

derby

Is there a way in a derby database to add a column after another just like mysql does?

like image 433
Florian Müller Avatar asked Nov 05 '22 04:11

Florian Müller


1 Answers

I don't believe so. Column ordering isn't really a standard SQL feature. Well-written db applications shouldn't care about column ordering. You can specify the order of the columns in your output by naming the columns in your SQL statement as in:

create table t (a int, b int, c int );

select b, c, a from t;

like image 102
Bryan Pendleton Avatar answered Nov 11 '22 08:11

Bryan Pendleton