由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - question
相关主题
Re: question about CAST and Multiset[转载] 旋转完成?
Help about mysql问个关于sql query 运行速度的问题
Questions about building a database(Maybe ACCESS?)SQL脚本?
stored procedure running 很慢的问题Does MS SQL 7 support SQL3 Datatype?
long and CLOB.. any differences?SQL Server restore(transferred from other DB) error... HELP!
for round() function in SQLIs "Dim mydb as database" a user-defined datatype
SQL Server - convert datetime to a string YY-MM-DD HHhow to write this query, need help !!
something about SQLquestion for webdb guru
相关话题的讨论汇总
话题: cast话题: multiset话题: type话题: data话题: sql
进入Database版参与讨论
1 (共1页)
C*******e
发帖数: 41
1
I have a question here:
What do CAST and MULTISET do in SQL language?
I read in a book that CAST converts a specified scalar value to
a specified scalar data type (maybe a user defined data type),
is that true? Does it take at least two arguments (value and the
data type)?
And I can't find MULTISET. Please give me a hand.
Thanks.
s*****c
发帖数: 36
2

CAST is a reversed word in SQL2 Standard. Generaly, it
should have two
argus: value and new data type. But in diffrent DBMSs, the
syntax maybe a little diffrent, so you'd better refer to
your server's documents. Convert is another funtion similar
with Cast.
For SQL Server, the syntax is: CAST(expression as datatype),
and it doesn't suporrt user-defined datatype in CAST.

【在 C*******e 的大作中提到】
: I have a question here:
: What do CAST and MULTISET do in SQL language?
: I read in a book that CAST converts a specified scalar value to
: a specified scalar data type (maybe a user defined data type),
: is that true? Does it take at least two arguments (value and the
: data type)?
: And I can't find MULTISET. Please give me a hand.
: Thanks.

C*******e
发帖数: 41
3
Thanks!
Since I was looking at relational/object DBMS, CAST
now is extended to user defined data type also, I guess,
in SQL extensions. And probabely MULTISET serves similar
function together with CAST, but I really couldn't find
this guy.

【在 s*****c 的大作中提到】
:
: CAST is a reversed word in SQL2 Standard. Generaly, it
: should have two
: argus: value and new data type. But in diffrent DBMSs, the
: syntax maybe a little diffrent, so you'd better refer to
: your server's documents. Convert is another funtion similar
: with Cast.
: For SQL Server, the syntax is: CAST(expression as datatype),
: and it doesn't suporrt user-defined datatype in CAST.

1 (共1页)
进入Database版参与讨论
相关主题
question for webdb gurulong and CLOB.. any differences?
SQL问题求救!!for round() function in SQL
有关m# sql server text字段类型一问SQL Server - convert datetime to a string YY-MM-DD HH
the most stupid questionsomething about SQL
Re: question about CAST and Multiset[转载] 旋转完成?
Help about mysql问个关于sql query 运行速度的问题
Questions about building a database(Maybe ACCESS?)SQL脚本?
stored procedure running 很慢的问题Does MS SQL 7 support SQL3 Datatype?
相关话题的讨论汇总
话题: cast话题: multiset话题: type话题: data话题: sql