I tried searching on this topic but I couldn't find any help on it. I want to write a CREATE TABLE
query with SELECT
having NOT NULL
fields. The query I am using to create the table is as follows:
CREATE TABLE tbl_tsLiLpLgIspFiFp
SELECT timeStamp, localIp, localport, localgeo, isp, foreignip, foreignPort,
COUNT(*) AS `countSamefPort`
FROM union_of_outbound_threats
GROUP BY timeStamp, localIp, localport, localgeo, isp, foreignip, foreignPort;
I want the fields to be set as NOT NULL
. What extra parameters should I add? If this was addressed before please direct me to it :)