Skip to content

Shell命令操作Wasp

jaywong edited this page Jul 29, 2013 · 2 revisions

Examples:

 wasp> sql "create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)"
 wasp> sql "insert into table1(field1,field2) values(value1,value2)"
 wasp> query "select * from table1 where col1='a'"
 wasp> query "select * from table1 where col1='a'",{MODEL=>'CURRENT'}
 wasp> query "select * from table1 where col1='a'",{MODEL=>'SNAPSHOT'}
 wasp> query "select * from table1 where col1='a'",{MODEL=>'INCONSISTENT'}
Clone this wiki locally