This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Get list of objects
#1
Hi

I have a need to get a list of objects inside the SL/LM based on the main group. What I would like to do is make a query for all objects in main group 0.

I have tried some different SQL lookup, but due to my restricte knowledge of SQL I am not able to get a list based on the group address, only based on the name. Anyone have a tip how to proceed?

What I have done so far is:
Code:
liste = db:getall('SELECT address FROM objects WHERE name LIKE "%lys set value%"') -- returns a list with all objects containing this string
liste = db:getall('SELECT address FROM objects WHERE address LIKE "%0/0%"') -- returns empty list, as the address in the SQL table seems to be a number, not a string.
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply


Messages In This Thread
Get list of objects - by Trond Hoyem - 16.07.2019, 10:56
RE: Get list of objects - by admin - 16.07.2019, 11:15
RE: Get list of objects - by Trond Hoyem - 16.07.2019, 11:30
RE: Get list of objects - by admin - 16.07.2019, 11:39
RE: Get list of objects - by Trond Hoyem - 16.07.2019, 12:35

Forum Jump: