Skip to content

Commit c5d4b4d

Browse files
committed
update
1 parent f2f003b commit c5d4b4d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ The append! function accepts a table object as a parameter and appends the data
307307
public void test_save_table(BasicTable table1)
308308
{
309309
List<IEntity> args = new List<IEntity>(){ table1};
310-
conn.run("append!{shareTable}", args);
310+
conn.run("tableInsert{shareTable}", args);
311311
}
312312
```
313313

@@ -328,13 +328,13 @@ db = database(dbPath,RANGE,2018.01.01..2018.12.31)
328328
db.createPartitionedTable(t,tbName,'ctimestamp')
329329
```
330330

331-
DolphinDB provides the loadTable method to load distributed tables and append data via append!. The specific script examples are as follows:
331+
DolphinDB provides the loadTable method to load distributed tables and append data via tableInsert. The specific script examples are as follows:
332332

333333
```
334334
public void test_save_table(string dbPath, string tableName, BasicTable table1)
335335
{
336336
List<IEntity> args = new List<IEntity>() { table1 };
337-
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
337+
conn.run(String.Format("tableInsert{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
338338
}
339339
```
340340

@@ -361,13 +361,13 @@ db = database(dbPath,RANGE,2018.01.01..2018.12.31)
361361
db.createPartitionedTable(t,tbName,'ctimestamp')
362362
```
363363

364-
DolphinDB provides the loadTable method to load local disk tables as well, and function append! to append data.
364+
DolphinDB provides the loadTable method to load local disk tables as well, and function tableInsert to append data.
365365

366366
```
367367
public void test_save_table(string dbPath, string tableName, BasicTable table1)
368368
{
369369
List<IEntity> args = new List<IEntity>() { table1 };
370-
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
370+
conn.run(String.Format("tableInsert{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
371371
}
372372
```
373373

README_CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ def saveData(v1,v2,v3,v4){tableInsert(sharedTable,v1,v2,v3,v4)}
262262
具体的文档请参考[部分应用文档](https://www.dolphindb.cn/cn/help/PartialApplication.html)
263263

264264
##### 9.1.3. 使用表方式保存
265-
若C#程序是从DolphinDB的服务端获取表数据做处理后保存到分布式表,那么使用append!函数会更加方便,append!函数接受一个表对象作为参数,将数据追加到数据表中。
265+
若C#程序是从DolphinDB的服务端获取表数据做处理后保存到分布式表,tableInsert函数也可以接受一个表对象作为参数,将数据追加到数据表中。
266266

267267
```
268268
public void test_save_table(BasicTable table1)
269269
{
270270
List<IEntity> args = new List<IEntity>(){ table1};
271-
conn.run("append!{shareTable}", args);
271+
conn.run("tableInsert{shareTable}", args);
272272
}
273273
```
274274
#### 9.2. 将数据保存到本地磁盘表和分布式表
@@ -286,13 +286,13 @@ if(existsDatabase(dbPath)){dropDatabase(dbPath)}
286286
db = database(dbPath,RANGE,2018.01.01..2018.12.31)
287287
db.createPartitionedTable(t,tbName,'ctimestamp')
288288
```
289-
DolphinDB提供loadTable方法可以加载分布式表,通过append!方式追加数据,具体的脚本示例如下:
289+
DolphinDB提供loadTable方法可以加载分布式表,通过tableInsert方式追加数据,具体的脚本示例如下:
290290

291291
```
292292
public void test_save_table(string dbPath, string tableName, BasicTable table1)
293293
{
294294
List<IEntity> args = new List<IEntity>() { table1 };
295-
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
295+
conn.run(String.Format("tableInsert{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
296296
}
297297
```
298298

@@ -316,12 +316,12 @@ if(existsDatabase(dbPath)){dropDatabase(dbPath)}
316316
db = database(dbPath,RANGE,2018.01.01..2018.12.31)
317317
db.createPartitionedTable(t,tbName,'ctimestamp')
318318
```
319-
DolphinDB提供loadTable方法同样可以加载本地磁盘表,通过append!追加数据
319+
DolphinDB提供loadTable方法同样可以加载本地磁盘表,tableInsert追加数据
320320
```
321321
public void test_save_table(string dbPath, string tableName, BasicTable table1)
322322
{
323323
List<IEntity> args = new List<IEntity>() { table1 };
324-
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
324+
conn.run(String.Format("tableInsert{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
325325
}
326326
```
327327
### 10. 循环遍历BasicTable

0 commit comments

Comments
 (0)