 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
Formatting CREATE TABLE statements |
|
Is there a way to format CREATE TABLE statements to get the following structure?
 |
 |
CREATE TABLE ...
(
...
,...
,... AS
CASE ...
WHEN ... THEN ...
ELSE ...
END
)
|
I tried by modifying formatting rules for both CREATE TABLE and CASE, even created a new one for AS CASE but I just could not achieve the desired result. The CASE part is always ruined somehow. Is it possible at all?
By the way, when declaring a table variable, datatypes are not aligned the way they are for CREATE TABLE. Is there a separate switch for that or is that function only working for CREATE TABLE statements?
|
|
Thu Aug 23, 2012 8:54 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
I've tried different options too and so far failed to get good results. Any advanced expression within the CREATE TABLE command makes results of formatting looking bad.
I will continue experimenting, if I find any good solution, I will post it here
|
|
Thu Aug 23, 2012 6:51 pm |
|
 |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
|
|
Thank you very much, I'll do the same. Any hints on table variable declaration and datatype alignment?
|
|
Fri Aug 24, 2012 3:28 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|