rendered paste bodymysql> select * from orksegment;
+----+----------+-----------------+------------+-------------+-------------+------------+------------------+---------------+----------+---------+---------------------+-----------+------------+---------+---------+---------+
| id | duration | localEntryPoint | localParty | loginString | remoteParty | tapeOffset | persianTimestamp | sessionOffset | portName | deleted | timestamp | direction | session_id | user_id | tape_id | port_id |
+----+----------+-----------------+------------+-------------+-------------+------------+------------------+---------------+----------+---------+---------------------+-----------+------------+---------+---------+---------+
| 1 | 3 | | 1011 | | 1010 | 0 | | 0 | USJ | | 2011-05-15 10:41:27 | 0 | NULL | NULL | NULL | NULL |
| 2 | 2 | | 1011 | | 1010 | 0 | | 0 | UST | | 2011-05-15 11:31:25 | 0 | NULL | NULL | NULL | NULL |
+----+----------+-----------------+------------+-------------+-------------+------------+------------------+---------------+----------+---------+---------------------+-----------+------------+---------+---------+---------+
2 rows in set (0.00 sec)
mysql> select * from orksegment where port_id=NULL;
Empty set (0.00 sec)
mysql>