Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

can we compare two timestamps in mysql

UPDATE report 1 SET status = 'time is larger' WHERE EXISTS 
  (SELECT ip_src, layer4_sport, timestamp FROM  
  (SELECT ip_src, layer4_sport, timestamp from report 1) AS tmpb  
   WHERE  report 1.layer4_sport = tmpb.layer4_sport 
   AND report 1.ip_src = tmpb.ip_src  
   AND  report 1.timestamp > tmpb.timestamp)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #compare #timestamps #mysql
ADD COMMENT
Topic
Name
7+8 =