FROM
WHERE 1 = 1
AND = ${tag-thread}
AND = ${tag-session}
AND = ${tag-request}
AND \\> ${message-id}
ORDER BY ASC
AND \\< ${message-id}
ORDER BY DESC
LIMIT 1
]]>
FROM
WHERE ${message-ids}
]]>
FROM
WHERE = ${message-id}
]]>
()
VALUES()
]]>
FROM
WHERE >= ${start-date}
AND < ${end-date}
AND = ${domain}
AND = ${name}
]]>
FROM
WHERE = ${period}
AND = ${domain}
AND = ${name}
]]>
FROM
WHERE = ${period}
AND = ${domain}
AND = ${type}
AND = ${name}
]]>
FROM
WHERE = ${period}
AND = ${type}
AND = ${name}
]]>
()
VALUES()
ON DUPLICATE KEY
UPDATE = ${content},
= NOW()
]]>
()
VALUES
()
]]>
FROM
WHERE = ${status}
AND = ${consumer}
]]>
SET =${consumer},
=2,
=${start-date}
WHERE = 1
AND = ${id};
]]>
SET =3,
=${end-date}
WHERE = 2
AND = ${id};
]]>
SET =4,
=${end-date},
= + 1
WHERE = 2
AND = ${id};
]]>
FROM
WHERE >= ${start-date}
AND < ${end-date}
AND = ${domain}
AND = ${name}
]]>
FROM
WHERE = ${name}
AND = ${domain}
AND = ${period}
]]>
()
VALUES
()
]]>
FROM
WHERE = ${name}
AND = ${domain}
AND = ${ip}
AND >= ${start-date}
AND < ${end-date}
ORDER BY ASC
]]>