Abstract:Stream data query is widely used, but the standard SQL language doesn’t support it. It is hence necessary to expand the SQL in semantics. A processing mechanism of stream data object is added to the query language for stream data(StreamSQL). StreamSQL supports transformation between stream data and relations by introducing the concept of sliding windows. In addition, it offers the user-defined function to make up for the disadvantage of the standard SQL in stream data processing.