alsoq)\l /path/to/table(or equivalently q)system"l /path/to/table")note that you can only have one table \l’d at a time in any given instance of qOn Tue, Jun 17, 2008 at 3:05 AM, Davies Liu <davies.liu> wrote:> Hi,>> Another question: How to open the parted table in q scripts ?>> one way: put the scripts in the same directory with tables, then load q with> the db path:>> # q /path/to/db>> Best regards,> Davies Liu>> On Wed, Jun 4, 2008 at 2:18 PM, Davies <davies.liu> wrote:>>>> Hi, all:>>>> I create a parted table, just like in /kx/kdb+/taq/tq.q, the directory>> looks like:>>>> rohan/>> |-- 2008.05.08>> | -- log>> | |-- agent>> | |-- bid>> | |-- code>> | |-- date>> | |-- ip>> | |-- length>> | |-- method>> | |-- nreferer>> | |-- nurl>> | |-- pt>> | |-- referer>> | |-- sid>> | |-- time>> | |-- uid>> |
– url>> |-- agent>> |-- sym>> -- url>>>> then:>>>> # q rohan>> q) \v>>
agentdate
logsym
url>> q)date>> ,2008.05.08>> q)type date>> 14h>> q)log>> log>> q)type log>> 101h / what does 101h mean?>> q)select from log>> 'type>> q)count value `:2008.05.08/log/>> 10>>>> how to deal with the parted table log, especially cross dates?>>>> Best Regards,>> Davies Liu>>>>> >>– Aaron Daviesaaron.davies@gmail.com</davies.liu></davies.liu>