Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread if exists in alter table allowed in Dbisam2?
Tue, Dec 16 2014 7:57 AMPermanent Link

HeiNi

Avatar

Hello
Is [IF EXISTS] allowed in ALTER TABLE in DBISAM2
If not what is the easiest way to substitute ist?

Thanks for helping
Tue, Dec 16 2014 8:10 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

HeiNi


>Is [IF EXISTS] allowed in ALTER TABLE in DBISAM2
>If not what is the easiest way to substitute ist?

I can't remember that far back, maybe someone else can but why not simply try it in DBSys.

If it isn't supported then with DBISAM's SQL I don't think you can do much (hopefully someone will prove me wrong). What exactly you can do will depend on what you're trying to do with it. One option, if you're wanting to use it to alter column definitions in an existing implementation would be to add code in the application to compare existing structure with desired struction and create the SQL for it on the fly, or just use table methods.

Roy Lambert
Tue, Dec 16 2014 9:55 AMPermanent Link

HeiNi

Avatar

Hello Roy,

an error rises up. Yes it is to to alter column definitions in an existing table.

Roy Lambert wrote:

HeiNi


>Is [IF EXISTS] allowed in ALTER TABLE in DBISAM2
>If not what is the easiest way to substitute ist?

I can't remember that far back, maybe someone else can but why not simply try it in DBSys.

If it isn't supported then with DBISAM's SQL I don't think you can do much (hopefully someone will prove me wrong). What exactly you can do will depend on what you're trying to do with it. One option, if you're wanting to use it to alter column definitions in an existing implementation would be to add code in the application to compare existing structure with desired struction and create the SQL for it on the fly, or just use table methods.

Roy Lambert
Tue, Dec 16 2014 10:18 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

HeiNi


In that case you need to write your own code unless you're lucky enough that someone has already done it and loaded it into the binaries. I seem to remember something in there.

There was also a third party tool I think from www.contextsoft.com, but you'll have to have a hunt round.

Roy Lambert
Tue, Dec 16 2014 10:35 AMPermanent Link

HeiNi

Avatar

Thanks.
Image