羚羊contiki-OS
Antelope contiki-OS
刚开始学习Contiki-OS。
我对 Contiki - Antelope 很感兴趣。
我尝试使用 AQL(Antelope 查询语言)在串行 Cooja 模拟中创建关系、属性和插入元组。像这样:
create relation simple;
create attribute id domain int in sample;
create attribute temp domain int in sample;
insert (1,1) into sample;
insert (2.2) into sample;
....
但是,我不知道如何自动插入大约 1000 个元组?
我不能像这样操作本手册:
insert (1,1) into sample;
insert (2.2) into sample;
.....
inser (1000,1000) into sample;
如何自动添加1000个元组?
Contiki 包含一个 Antelope 示例,可自动将用户指定数量的元组插入数据库。请参阅 Contiki 源代码中的文件 examples/antelope/netdb/netdb-server.c。
另请注意,您的问题中列出的命令和查询中有几个拼写错误,这可能会导致一些问题。
刚开始学习Contiki-OS。 我对 Contiki - Antelope 很感兴趣。 我尝试使用 AQL(Antelope 查询语言)在串行 Cooja 模拟中创建关系、属性和插入元组。像这样:
create relation simple;
create attribute id domain int in sample;
create attribute temp domain int in sample;
insert (1,1) into sample;
insert (2.2) into sample;
....
但是,我不知道如何自动插入大约 1000 个元组? 我不能像这样操作本手册:
insert (1,1) into sample;
insert (2.2) into sample;
.....
inser (1000,1000) into sample;
如何自动添加1000个元组?
Contiki 包含一个 Antelope 示例,可自动将用户指定数量的元组插入数据库。请参阅 Contiki 源代码中的文件 examples/antelope/netdb/netdb-server.c。
另请注意,您的问题中列出的命令和查询中有几个拼写错误,这可能会导致一些问题。