select field1||'  '||field2 as MyField from table1;

解决方案 »

  1.   

    能写出完整的SQL么?
    我对ORACLE的函数不了解,谢谢你了.
      

  2.   

    上面的语句应该就可以执行
    select to_char(field1,999)¦¦'  '¦¦field2 as MyField from table1; 
    15:57:14 SQL> select 1.23||'  '||'abc' from dual;1.23||''|
    ---------
    1.23  abc已用时间:  00: 00: 00.32
    16:14:55 SQL> select to_char(123.456)||'  '||'abc' from dual;TO_CHAR(123.
    ------------
    123.456  abc已用时间:  00: 00: 00.16
    16:15:12 SQL>
      

  3.   

    MSSQL中的FLOOR,Str,LTRIM几个函数在ORACLE中对应的是什么呀?
      

  4.   

    16:25:57 SQL> select floor(123.3) from dual;FLOOR(123.3)
    ------------
             123已用时间:  00: 00: 00.15
    16:26:48 SQL> select trim('   aaa   ') from dual;TRI
    ---
    aaa已用时间:  00: 00: 00.31
    16:27:00 SQL>
      

  5.   

    str 是转换成字符串的功能
    oracle中是to_char()
      

  6.   

    STR 函数将数字转换为字符,用可选的参数来指定结果的总长度(包括小数点和小数点后的位数)。
    下面的示例将 123.45 的浮点表达式转换为字符长度为 6 和小数位数为 2 的字符。 SELECT STR(123.45, 6, 2)下面是结果集:------
    123.45
      

  7.   

    下例使用 LTRIM 字符删除字符变量中的起始空格。DECLARE @string_to_trim varchar(60)
    SET @string_to_trim = '     Five spaces are at the beginning of this
       string.'
    SELECT 'Here is the string without the leading spaces: ' + 
       LTRIM(@string_to_trim)
    GO下面是结果集:------------------------------------------------------------------------
    Here is the string without the leading spaces: Five spaces are at the beginning of this string.             (1 row(s) affected)
      

  8.   

    16:27:00 SQL> select to_char(123.456,'9999.99') from dual;TO_CHAR(
    --------
      123.46已用时间:  00: 00: 00.32
    16:32:06 SQL>
      

  9.   

    16:27:00 SQL> select to_char(123.456,'9999.99') from dual;TO_CHAR(
    --------
      123.46已用时间:  00: 00: 00.32
    16:32:06 SQL>
      

  10.   

    请bzszp(SongZip)到
    http://community.csdn.net/Expert/topic/3402/3402545.xml?temp=.1959345
    此得分啦.