关于字符串处理部题
table1表 
 jgdm字段 
 716139999-9记录值   
 table2表 
 jgdm字段 
 7161399999记录值   
 BEGIN          
                   select   *   FROM   table1   ,   table2    
                   WHERE   (table1.jgdm   =table2.jgdm)    
 END   
 怎样写where   后语句,把716139999-9   转为   7161399999,使   WHERE   (table1.jgdm   =table2.jgdm)   成立。
------解决方案--------------------select * FROM table1 , table2  
       WHERE (replace(table1.jgdm, '- ', ' ') =table2.jgdm)
------解决方案--------------------select * FROM table1 , table2  
       WHERE (replace(table1.jgdm, '- ', ' ') =table2.jgdm)