on 05-27-2014 9:14 AM
Hi,
Can we create table types via the repository / DDL source files? I see examples on actual table creations. But what about table types? Is this only possible via SQL console?
Regards,
Nehal.
Hi Nehal,
You can create using HDBDD
@Catalog.tableType : #COLUMN
Did you have a look on page 182 in dev guide?
namespace com.acme.myapp1;
@Schema : 'MYSCHEMA'
@Catalog.tableType : #COLUMN
@Catalog.index : [ { name : 'MYINDEX1', unique : true, order :#DESC, elementNames :
['ISBN'] } ]
entity MyTable {
key Author : String(100);
key BookTitle : String(100);
};
ISBN : Integer not null;
Publisher : String(100);
Regards,
Krishna Tangudu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ho Sorry my bad yes you are correct.
Refer to Page no: 186
namespace com.acme.myapp1;
@Schema: 'MYSCHEMA' // Structured types
type Type1 {
Fstr: String( 5000 );
Flstr: LargeString;
Fbin: Binary( 4000 );
Flbin: LargeBinary;
Fint: Integer;
Fint64: Integer64;
Ffixdec: Decimal( 34, 34 );
Fdec: DecimalFloat;
Fflt: BinaryFloat;
Flocdat: LocalDate;
Floctim: LocalTime;
Futcdatim: UTCDateTime;
Futctstmp: UTCTimestamp; };
You can also use .hdbstructure to create a table types
Regards,
Krishna Tangudu
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.