Выражение Visual FoxPro | Выражение SQL Server |
Истина (.Т.) | 1 |
Ложь (.F.) | 0 |
# | <> |
.AND. | AND |
.NOT. | NOT |
.NULL. | NULL |
.OR. | OR |
= <; | <= |
= > | >= |
ASCO | ASCII () |
AT() | CHARINDEX ( ) |
CDOW ( ) | DATENAME(dw, . . . ) |
CHR() | CHAR ( ) |
CMONTH ( ) | DATENAME (mm, . . • ) |
CTODO | CONVERT {datetime, . . . ) |
CTOT ( ) | CONVERT (datetime, . . . ) |
DATE ( ) | GET DATE ( ) |
DATETIME ( } | GETDATE ( ) |
DAY () | DATEPART{dd, . . . ) |
DOW() | DATEPART (dw, . . . ) |
DTOC ( ) | CONVERT (varchar, ...) |
DTOR ( ) | RADIANS ( ) |
DTOT ( ) | CONVERT (datetime, ...) |
HOUR ( ) | DATEPART (hh, . . . ) |
LIKEO | PATINDEX ( ) |
MINUTE () | DATEPART (mi, . . . ) |
MONTH ( ) | DATEPART (mm, . . . ) |
MTON ( ) | CONVERT (money, . . . ) |
NTOM ( ) | CONVERT (float, . . . ) |
RTOD ( ) | DEGREES ( ) |
SUBSTRO | SUBSTRING () |
ТТОС ( ) | CONVERT (char, , . . ) |
TTOD{) | CONVERT (ciatetime, . . , ) |
YEAR ( ) | DATEPARTfyy, ...} |
Следующие функции имеют одинаковый вид и в Visual FoxPro, и в SQL Server.
CEILING ()
LOG (
LOWER ()
LTRIM(
RIGHT()
RTRIM()
SOUNDEX()
SPACE ()
STR()
STUFF ()
UPPER ()