当前位置:首页 » 软件行业

帮忙解决一个SQL问题!(急)

八月 3, 2007

 发表在: java



select   title+othtitle   from   title  
  如果othtitle是null  
   
  那title+othtitle也是null  
   
  但是title不为空,请问如何解决这个问题  
   
  sql怎么写能把null转写r  
  好像有个函数吧    
   
 

电脑软件技术推荐:

  • 用JavaMail API编写可带附件的邮件发送程序[详细内容]
  • 用VC编写具有动态换肤功能的应用程序[详细内容]
  • 用PB编写WinSock TCP/IP应用程序[详细内容]
  • Delphi编写后台监控软件[详细内容]
  • 如何用PHP调用自己编写的COM组件?[详细内容]
  • Dreamweaver MX新功能(2):方便的代码编写[详细内容]
  • 17岁少女用C#语言编写的Sharpei病毒登场[详细内容]
  • Foxmail编写者张小龙:在婆家渐入佳境[详细内容]
  • 用C++Builder编写发送电子邮件软件[详细内容]
  • 用VC++5.0编写Ftp客户程序[详细内容]
  • 相关提议:
    发表者:vivianfdlpw

    select   title+isnull(othtitle,)   from   title

    发表者:phantomman

    select   isnull(title,)+isnull(othtitle,)   from   title

    发表者:wangdehao

    select   title+isnull(othtitle,)   from   title  
     

    发表者:summericeredtea

    --用phantomman的好了   :)   两个都不会为空了  
      select   isnull(title,)+isnull(othtitle,)   from   title  
     

    发表者:filebat

    还是觉得select   title+isnull(othtitle,)   from   title更贴切一些.  
       
      楼主并没有说title为空时,就怎么样..  
      可能title为空时,   要求返回null.

    发表者:poonzsp

    select   isnull(title,)+isnull(othtitle,)   from   titles

    .

    No comments in this entry


    Post a Comment »

    Logged in

    Advertising

    Categories

    相关文章