Questions tagged «teradata»

2
SQL SELECT多列INTO多变量
我正在将SQL从Teradata转换为SQL Server 在Teradata中,它们具有以下格式 SELECT col1, col2 FROM table1 INTO @variable1, @variable2 在SQL Server中,我发现 SET @variable1 = ( SELECT col1 FROM table1 ); 那每个语句只允许一个列/变量。如何使用单个SELECT语句分配2个或更多变量?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.