lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


the imported file contains atleast 700 events, it does automatically by script, sctpit output shows like, this
 
query  INSERT INTO eventLog ('component', 'facilityId', 'logLevel', 'textMessage', 'binMessage') VALUES ('UMI_COMP_PLATFORM', '3', '8', 'Tue Feb  2 22:02:07 2010 [MFD][System][PLATFORM] Checking for hlt inst', '')

 

query  INSERT INTO eventLog ('component', 'facilityId', 'logLevel', 'textMessage', 'binMessage') VALUES ('UMI_COMP_PLATFORM', '3', '8', 'Tue Feb  2 22:02:07 2010 [MFD][System][PLATFORM] Done', '')

Can I add 1 into query sting?

 


On Thu, Feb 4, 2010 at 4:49 PM, Joseph Stewart <joseph.stewart@gmail.com> wrote:
I am inserting some imported events into a Table, looklike it is inserting at the end, is there anyway I can insert at the beginning of Table?.


Yes:

table.insert(t,1,value)

(see http://www.lua.org/manual/5.1/manual.html#5.5)

-joe
 
 
when I reboot the baord, I am importing previous log from a file, but those imported records inserting at the end of table (this table already have some boot info, I need imported event info at the beginning). can I do it?