${table} SELECT username, pwdHash, pwdAlgorithm, useForwarding, forwardDestination, useAlias, alias FROM ${table} ORDER BY username SELECT username, pwdHash, pwdAlgorithm, useForwarding, forwardDestination, useAlias, alias FROM ${table} WHERE lower(username) = ? SELECT username, pwdHash, pwdAlgorithm, useForwarding, forwardDestination, useAlias, alias FROM ${table} WHERE username = ? INSERT INTO ${table} (username, pwdHash, pwdAlgorithm, useForwarding, forwardDestination, useAlias, alias) VALUES (?,?,?,?,?,?,?) UPDATE ${table} SET pwdHash = ?, pwdAlgorithm = ?, useForwarding = ?, forwardDestination = ?, useAlias = ?, alias = ? WHERE username = ? DELETE FROM ${table} WHERE username = ? CREATE CACHED TABLE ${table} (username VARCHAR(64) NOT NULL, pwdHash VARCHAR(50), pwdAlgorithm VARCHAR(20), useForwarding INTEGER, forwardDestination VARCHAR(255), useAlias INTEGER, alias VARCHAR(255), PRIMARY KEY(username)) CREATE TABLE ${table} (username VARCHAR(64) NOT NULL, pwdHash VARCHAR(50), pwdAlgorithm VARCHAR(20), useForwarding SMALLINT, forwardDestination VARCHAR(255), useAlias SMALLINT, alias VARCHAR(255), PRIMARY KEY(username)) ${table} SELECT username, pwdHash, pwdAlgorithm FROM ${table} INSERT INTO ${table} (username, pwdHash, pwdAlgorithm) VALUES (?,?,?) UPDATE ${table} SET pwdHash = ?, pwdAlgorithm = ? WHERE username = ? DELETE FROM ${table} WHERE username = ? CREATE CACHED TABLE ${table} (username VARCHAR(64) NOT NULL, pwdHash VARCHAR(50), pwdAlgorithm VARCHAR(20), PRIMARY KEY(username)) CREATE TABLE ${table} (username VARCHAR(64) NOT NULL, pwdHash VARCHAR(50), pwdAlgorithm VARCHAR(20), PRIMARY KEY(username)) ${table} SELECT listSubscriber FROM ${table} WHERE listName = '${key}' INSERT INTO ${table} (listSubscriber, listName) VALUES (?, '${key}') UPDATE ${table} SET listSubscriber = ? WHERE listSubscriber = ? AND listName = '${key}' DELETE FROM ${table} WHERE listSubscriber = ? AND listName = '${key}' CREATE CACHED TABLE ${table} (listName VARCHAR(64) NOT NULL, listSubscriber VARCHAR(255) NOT NULL, PRIMARY KEY(listName, listSubscriber)) CREATE TABLE ${table} (listName VARCHAR(64) NOT NULL, listSubscriber VARCHAR(255) NOT NULL, PRIMARY KEY(listName, listSubscriber)) SELECT count(*) FROM ${table} WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_state = ?, error_message = ?, sender = ?, recipients = ?, remote_host = ?, remote_addr = ?, last_updated = ? WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_body = ? WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_attributes = ? WHERE message_name = ? AND repository_name = ? INSERT INTO ${table} (message_name, repository_name, message_state, error_message, sender, recipients, remote_host, remote_addr, last_updated, message_body, message_attributes) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) SELECT message_state, error_message, sender, recipients, remote_host, remote_addr, last_updated FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_body FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_attributes FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT datalength(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT dbms_lob.getlength(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? DELETE FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_name, message_state, last_updated FROM ${table} WHERE repository_name = ? ORDER BY last_updated ASC CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (100) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients text NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body longblob NOT NULL , message_attributes longblob NULL , last_updated datetime NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE CACHED TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body varchar NOT NULL , message_attributes varchar NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE CACHED TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body varchar NOT NULL , message_attributes varchar NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE [${table}] ( [message_name] [varchar] (200) NOT NULL, [repository_name] [varchar] (255) NOT NULL, [message_state] [varchar] (30) NOT NULL , [error_message] [varchar] (1000) NULL , [sender] [varchar] (255) NULL , [recipients] [text] NOT NULL , [remote_host] [varchar] (255) NOT NULL , [remote_addr] [varchar] (20) NOT NULL , [message_body] [image] NOT NULL , [message_attributes] [image] NULL , [last_updated] [datetime] NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar2(200) NOT NULL , repository_name varchar2(255) NOT NULL , message_state varchar2(30) NOT NULL , error_message varchar2(200) NULL , sender varchar2(255) , recipients varchar2(1000) NOT NULL , remote_host varchar2(100) NOT NULL , remote_addr varchar2(20) NOT NULL , message_body blob NOT NULL , message_attributes blob NULL , last_updated date NOT NULL , PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients text NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body bytea NOT NULL , message_attributes bytea NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (200) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (200) NULL , recipients long NOT NULL , remote_host varchar (100) NOT NULL , remote_addr varchar (20) NOT NULL , message_body long byte NOT NULL , message_attributes long byte NULL , last_updated date NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar(200) NOT NULL , repository_name varchar(255) NOT NULL , message_state varchar(30) NOT NULL , error_message varchar(200) , sender varchar(255) , recipients varchar(1000) NOT NULL , remote_host varchar(100) NOT NULL , remote_addr varchar(20) NOT NULL , message_body blob NOT NULL , message_attributes blob , last_updated timestamp NOT NULL , PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) , sender varchar (255) , recipients LONG VARCHAR NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body LONG BYTE NOT NULL , message_attributes LONG BYTE , last_updated DATE NOT NULL ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) , sender varchar (255) , recipients long varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body blob NOT NULL , message_attributes blob , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) SELECT count(*) FROM ${table} WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_state = ?, error_message = ?, sender = ?, recipients = ?, remote_host = ?, remote_addr = ?, last_updated = ? WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_body = ? WHERE message_name = ? AND repository_name = ? UPDATE ${table} SET message_attributes = ? WHERE message_name = ? AND repository_name = ? INSERT INTO ${table} (message_name, repository_name, message_state, error_message, sender, recipients, remote_host, remote_addr, last_updated, message_body, message_attributes) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) SELECT message_state, error_message, sender, recipients, remote_host, remote_addr, last_updated FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_body FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_attributes FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT datalength(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT dbms_lob.getlength(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT length(message_body) FROM ${table} WHERE message_name = ? AND repository_name = ? DELETE FROM ${table} WHERE message_name = ? AND repository_name = ? SELECT message_name, message_state, last_updated, error_message FROM ${table} WHERE repository_name = ? ORDER BY last_updated ASC CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body varchar NOT NULL , message_attributes varchar NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE CACHED TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body varchar NOT NULL , message_attributes varchar NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (100) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients text NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body longblob NOT NULL , message_attributes longblob NULL , last_updated datetime NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE [${table}] ( [message_name] [varchar] (200) NOT NULL, [repository_name] [varchar] (255) NOT NULL, [message_state] [varchar] (30) NOT NULL , [error_message] [varchar] (1000) NULL , [sender] [varchar] (255) NULL , [recipients] [text] NOT NULL , [remote_host] [varchar] (255) NOT NULL , [remote_addr] [varchar] (20) NOT NULL , [message_body] [image] NOT NULL , [message_attributes] [image] NULL , [last_updated] [datetime] NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar2(200) NOT NULL , repository_name varchar2(255) NOT NULL , message_state varchar2(30) NOT NULL , error_message varchar2(200) NULL , sender varchar2(255) NULL , recipients varchar2(1000) NOT NULL , remote_host varchar2(255) NOT NULL , remote_addr varchar2(20) NOT NULL , message_body blob NOT NULL , message_attributes blob NULL , last_updated date NOT NULL , PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients text NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body bytea NOT NULL , message_attributes bytea NULL , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) NULL , sender varchar (255) NULL , recipients long NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body long byte NOT NULL , message_attributes long byte NULL , last_updated date NOT NULL, PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar(200) NOT NULL , repository_name varchar(255) NOT NULL , message_state varchar(30) NOT NULL , error_message varchar(200) , sender varchar(255) , recipients varchar(1000) NOT NULL , remote_host varchar(100) NOT NULL , remote_addr varchar(20) NOT NULL , message_body blob NOT NULL , message_attributes blob , last_updated timestamp NOT NULL , PRIMARY KEY (repository_name, message_name) ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) , sender varchar (255) , recipients LONG VARCHAR NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body LONG BYTE NOT NULL , message_attributes LONG BYTE , last_updated DATE NOT NULL ) CREATE TABLE ${table} ( message_name varchar (200) NOT NULL, repository_name varchar (255) NOT NULL, message_state varchar (30) NOT NULL , error_message varchar (200) , sender varchar (255) , recipients long varchar NOT NULL , remote_host varchar (255) NOT NULL , remote_addr varchar (20) NOT NULL , message_body blob NOT NULL , message_attributes blob , last_updated timestamp NOT NULL, PRIMARY KEY (repository_name, message_name) ) bayesiananalysis_ham bayesiananalysis_spam bayesiananalysis_messagecounts SELECT HAMCOUNT, SPAMCOUNT FROM bayesiananalysis_messagecounts INSERT INTO bayesiananalysis_messagecounts (HAMCOUNT, SPAMCOUNT) VALUES (0,0) UPDATE bayesiananalysis_messagecounts SET HAMCOUNT=(HAMCOUNT + ?) UPDATE bayesiananalysis_messagecounts SET SPAMCOUNT=(SPAMCOUNT + ?) SELECT TOKEN, OCCURRENCES FROM bayesiananalysis_ham SELECT TOKEN, OCCURRENCES FROM bayesiananalysis_spam INSERT INTO bayesiananalysis_ham (TOKEN, OCCURRENCES) VALUES (?,?) INSERT INTO bayesiananalysis_spam (TOKEN, OCCURRENCES) VALUES (?,?) UPDATE bayesiananalysis_ham SET OCCURRENCES=(OCCURRENCES + ?) WHERE (TOKEN=?) UPDATE bayesiananalysis_spam SET OCCURRENCES=(OCCURRENCES + ?) WHERE (TOKEN=?) DELETE FROM bayesiananalysis_ham DELETE FROM bayesiananalysis_spam DELETE FROM bayesiananalysis_messagecounts CREATE TABLE bayesiananalysis_ham ( token varchar(128) binary NOT NULL default '', occurrences int(11) NOT NULL default '0', PRIMARY KEY (token) ) TYPE=InnoDB CREATE TABLE [bayesiananalysis_ham] ( [token] [varchar] (128) COLLATE Latin1_General_CS_AS NOT NULL, [occurrences] [int] NOT NULL default (0), PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_ham ( token varchar(128) NOT NULL, occurrences INTEGER NOT NULL default 0, PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_ham ( token varchar(128) NOT NULL, occurrences int NOT NULL default 0, PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_spam ( token varchar(128) binary NOT NULL default '', occurrences int(11) NOT NULL default '0', PRIMARY KEY (token) ) TYPE=InnoDB CREATE TABLE [bayesiananalysis_spam] ( [token] [varchar] (128) COLLATE Latin1_General_CS_AS NOT NULL, [occurrences] [int] NOT NULL default (0), PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_spam ( token varchar (128) NOT NULL, occurrences INTEGER NOT NULL default 0, PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_spam ( token varchar (128) NOT NULL, occurrences int NOT NULL default 0, PRIMARY KEY (token) ) CREATE TABLE bayesiananalysis_messagecounts ( hamcount int(11) NOT NULL default '0', spamcount int(11) NOT NULL default '0' ) TYPE=InnoDB CREATE TABLE [bayesiananalysis_messagecounts] ( [hamcount] [int] NOT NULL default (0), [spamcount] [int] NOT NULL default (0) ) CREATE TABLE bayesiananalysis_messagecounts ( hamcount INTEGER NOT NULL default 0, spamcount INTEGER NOT NULL default 0 ) CREATE TABLE bayesiananalysis_messagecounts ( hamcount int NOT NULL default 0, spamcount int NOT NULL default 0 ) whitelist SELECT localUser, localHost FROM whitelist where (localUser=? AND localHost=? AND remoteUser=? AND remoteHost=?) SELECT remoteUser, remoteHost FROM whitelist where (localUser=? AND localHost=?) ORDER BY remoteUser, remoteHost INSERT INTO whitelist (localUser, localHost, remoteUser, remoteHost) VALUES (?,?,?,?) DELETE FROM whitelist where (localUser=? AND localHost=? AND remoteUser=? AND remoteHost=?) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE CACHED TABLE ${table} ( CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) character set latin1 NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) character set latin1 NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) TYPE=InnoDB CREATE TABLE [whitelist] ( [localUser] [varchar] (64) NOT NULL, [localHost] [varchar] (255) NOT NULL, [remoteUser] [varchar] (64) NOT NULL, [remoteHost] [varchar] (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) CREATE TABLE whitelist ( localUser varchar (64) NOT NULL, localHost varchar (255) NOT NULL, remoteUser varchar (64) NOT NULL, remoteHost varchar (255) NOT NULL, PRIMARY KEY (localUser, localHost, remoteUser, remoteHost) ) greylist SELECT create_time,count FROM greylist WHERE ipaddress = ? AND sender = ? AND recip = ? INSERT INTO greylist (ipaddress,sender,recip,count,create_time) values (?,?,?,?,?) DELETE FROM greylist WHERE create_time < ? AND count = 0 DELETE FROM greylist WHERE create_time < ? UPDATE greylist SET create_time = ? , count = ? WHERE ipaddress = ? AND sender = ? AND recip = ? CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time datetime NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE CACHED TABLE ${table} ( CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time timestamo NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time datetime NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) TYPE=InnoDB CREATE TABLE [greylist] ( [ipaddress] [varchar] (20) NOT NULL, [sender] [varchar] (255) NOT NULL, [recip] [varchar] (255) NOT NULL, [count] [int] NOT NULL, [create_time] [datetime] NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar2(20) NOT NULL, sender varchar2(255) NOT NULL, recip varchar2(255) NOT NULL, count int NOT NULL, create_time datetime NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time timestamp NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time date NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time timestamp NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time date NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) CREATE TABLE greylist ( ipaddress varchar (20) NOT NULL, sender varchar (255) NOT NULL, recip varchar (255) NOT NULL, count int NOT NULL, create_time timestamp NOT NULL, PRIMARY KEY (ipaddress,sender,recip) ) select VirtualUserTable.target_address,(VirtualUserTable."user" || '@' ||VirtualUserTable.domain) from VirtualUserTable, VirtualUserTable as VUTDomains where ((VirtualUserTable."user") like ? or (VirtualUserTable."user") like '\%' escape '\') and (VirtualUserTable.domain like ? or (VirtualUserTable.domain like '\%' escape '\' and VUTDomains.domain like ?)) order by 2 desc select VirtualUserTable.target_address from VirtualUserTable, VirtualUserTable as VUTDomains where (VirtualUserTable.user like ? or VirtualUserTable.user like '\%') and (VirtualUserTable.domain like ? or (VirtualUserTable.domain like '\%' and VUTDomains.domain like ?)) order by concat(VirtualUserTable.user,'@',VirtualUserTable.domain) desc limit 1 select VirtualUserTable.target_address from VirtualUserTable where VirtualUserTable."user" = ? and VirtualUserTable.domain = ? select VirtualUserTable.target_address from VirtualUserTable where VirtualUserTable.user = ? and VirtualUserTable.domain = ? delete from VirtualUserTable where VirtualUserTable."user" = ? and VirtualUserTable.domain = ? and VirtualUserTable.target_address = ? update VirtualUserTable set VirtualUserTable.target_address = ? where VirtualUserTable."user" = ? and VirtualUserTable.domain = ? insert into VirtualUserTable values(?,?,?) select * from VirtualUserTable select distinct domain from VirtualUserTable select distinct domain from VirtualUserTable where domain = ? CREATE TABLE VirtualUserTable ( user varchar(64) NOT NULL default '', domain varchar(255) NOT NULL default '', target_address varchar(255) NOT NULL default '', PRIMARY KEY (user,domain) ) CREATE TABLE VirtualUserTable ( "user" varchar(64) NOT NULL default '', domain varchar(255) NOT NULL default '', target_address varchar(255) NOT NULL default '', PRIMARY KEY ("user",domain) ) CREATE TABLE VirtualUserTable ( "user" varchar (64) NOT NULL default '', domain varchar (255) NOT NULL default '', target_address varchar (255) NOT NULL default '', PRIMARY KEY ("user",domain) ) select distinct domain from ${table} select distinct domain from ${table} where domain = ? insert into ${table} values (?) delete from ${table} where domain = ? CREATE TABLE ${table} ( domain varchar(100) NOT NULL default '' ) CREATE CACHED TABLE ${table} ( user varchar(100) NOT NULL default '' ) CREATE CACHED TABLE ${table} ( domain varchar(100) NOT NULL default '' ) CREATE TABLE [${table}] ( [user] [domain] (100) NOT NULL default '' ) CREATE TABLE ${table} ( domain varchar2(100) NOT NULL default '' ) CREATE TABLE ${table} ( domain varchar(64) NOT NULL default '' ) CREATE TABLE ${table} ( domain varchar(100) NOT NULL default '', ) CREATE TABLE ${table} ( domain varchar(100) NOT NULL default '' ) CREATE TABLE ${table} ( domain varchar(100) NOT NULL default '' ) CREATE TABLE ${table} ( domain varchar (100) NOT NULL default '' )