I want to use str_replace() in SQL query,
db_query('SELECT * FROM {node} n INNER JOIN {accesslog} a ON n.nid = str_replace("node/", "", a.path开发者_C百科); 
but still not work. please help.
thank you.
Pick a function that the SQL engine does know, such as REPLACE().
Use MySQL's REPLACE function instead of PHP's str_replace.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论