Jd/Ops create

From J Wiki
Jump to: navigation, search
Jd | Overview | General | Ops | Admin | Guide | Technical | Release | License | Support

createcol

createcol table col type
createcol table col byte [trailing-shape]
createcol table col type data
createcol table col byte [trailing-shape] data

creates new col with default values or data

createdb

createdb

valid only after a dropdb
creates filefolder, initial files, and gets lock

createtable

createtable [/a ...] table [coldefs]
createtable /pairs [/types] [/a ...] table ; pairs

/a min_rows multiplier extra_rows
when insert requires mapped col file resize, new size is:
min_rows>.>.multiplier*extra_rows+current_rows+new_rows
default is 2000 1.5 0
/pairs
/types - pairs have types in parens - cola(edate)

createtable with 0 or more cols

coldefs - col type [trailing-shape]
string arg coldefs separated by , or LF
boxed arg coldefs in separate boxes

createptable

createptable table pcol

allowed pcol types: int edate edatetime date datetime

table must have 0 rows

tutorial ptable