請問AddView 能夠一次存入多筆資料嗎?

4 views
Skip to first unread message

SeedSeek

unread,
Jan 8, 2012, 1:56:19 AM1/8/12
to Uliweb
假設我選擇了三個資料庫關聯的清單
[1]
[1, 2, 3]
[1, 2, 3]

在這樣的清單下會存入9筆資料,一個逗點是一個欄位
1, 1, 1
1, 1, 2
1, 1, 3
1, 2, 1
1, 2, 2
1, 2, 3
1, 3, 1
1, 3, 2
1, 3, 3

有甚麼方可法可以儲存的進去?

limodou

unread,
Jan 8, 2012, 6:14:10 AM1/8/12
to uli...@googlegroups.com
2012/1/8 SeedSeek <frt5...@gmail.com>:

AddView一般是做单条记录的处理的,除非你自已做一些特殊的处理。比如从AddView派生出新的子类,然后重新写一个save的处理方法,用来处理多条数据的存储。

--
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://code.google.com/p/uliweb/
My Blog: http://hi.baidu.com/limodou

Reply all
Reply to author
Forward
0 new messages