开发者

How to use functions/variables in DBLinq.MySQL

开发者 https://www.devze.com 2023-03-11 02:57 出处:网络
This is my query: SELECT IF(@@old_passwords, Old_Password(?), Password(?))=`password` AS pass FROM mysql.user WHERE User=?

This is my query:

SELECT IF(@@old_passwords, Old_Password(?), Password(?))=`password` AS pass
FROM mysql.user WHERE User=?

Can I translate this to Linq, or do I have to just开发者_如何学编程 extract the connection from the data context and do it the old way? All the documentation I can find is about simple queries: selects; joins; aggregates.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号