美文网首页
含%的字符串格式化

含%的字符串格式化

作者: Eric_Zeng | 来源:发表于2018-10-10 11:24 被阅读13次

    a = 'zengziji_sz'

    sql = """

    select ctype

    from IO_HI.dbo.MESSAGE_QUEUE

    where ctime>='20181009 08:00:00'

    and receiver like '%%%s%%'

    and ctype like '%%昨日%%'

    group by ctype;

    """%a

    相关文章

      网友评论

          本文标题:含%的字符串格式化

          本文链接:https://www.haomeiwen.com/subject/yxlpaftx.html