代码拉取完成,页面将自动刷新
package examples;
import com.xxdb.*;
import com.xxdb.data.BasicTable;
import java.io.IOException;
/**
* insert into can only be applied to in-memory table
*/
public class InsertIntoDemo {
public static void main(String[] args) throws IOException {
DBConnection conn = new DBConnection();
conn.connect("localhost", 8848, "admin", "123456");
conn.run("t = table(10000:0,`cstring`cint`ctimestamp`cdouble,[STRING,INT,TIMESTAMP,DOUBLE])\n" +
"share t as sharedTable");
conn.run(String.format("insert into sharedTable values(['IBM', 100, 2012.06.13 13:30:10.008, 3.14])"));
BasicTable basicTable = (BasicTable) conn.run("select * from sharedTable");
System.out.println(basicTable.getString());
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。