mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
update exp to sql
This commit is contained in:
parent
f48fe8065b
commit
1a25f9485c
@ -926,6 +926,18 @@ namespace SqlSugar
|
||||
{
|
||||
return $"strftime('%Y-%m-%d', {value})";
|
||||
}
|
||||
else if (IsSqlite() && formatString == "yyyy-MM")
|
||||
{
|
||||
return $"strftime('%Y-%m', {value})";
|
||||
}
|
||||
else if (IsSqlite() && formatString == "yyyyMM")
|
||||
{
|
||||
return $"strftime('%Y%m', {value})";
|
||||
}
|
||||
else if (IsSqlite() && formatString == "yyyyMMdd")
|
||||
{
|
||||
return $"strftime('%Y%m%d', {value})";
|
||||
}
|
||||
else if (IsSqlite() && formatString.Contains("%"))
|
||||
{
|
||||
return $"strftime('{formatString}', {value})";
|
||||
|
Loading…
Reference in New Issue
Block a user