Double colon (::) notation in SQL

后端 未结 4 443
悲&欢浪女
悲&欢浪女 2020-11-28 11:17

Have picked up someone\'s code and this is a part of a where clause, anyone know what the double colon indicates?

b.date_completed >  a.dc::date + INTERVA         


        
4条回答
  •  青春惊慌失措
    2020-11-28 11:29

    It is probably a cast, converting a.dc to type date.

    IBM Informix Dynamic Server (IDS) would work that way - but the INTERVAL notation at the end is not valid for IDS, so presumably this is in fact another DBMS (probably PostgreSQL).

提交回复
热议问题