Majid_it
Member
hi
I wrote a code that works properly inside sqlite
But inside b4a gives an error
error
why!!??
Help me please
I wrote a code that works properly inside sqlite
But inside b4a gives an error
B4X:
Dim str As String
str = $"CREATE VIEW view_moshtari_sath as
Select ROW_NUMBER() OVER ( ORDER BY year ASC , mon ASC , day ASC , ath1.ID ASC )
RowNum , ath1.bedehkari , ath1.talabkari , ath1.tozih , ath1.ID , ath1.year , ath1.mon , ath1.day , ath1.ID_moshtari , ID_hesab
from Tbl_moshtari_sath2 As ath1
ORDER BY year DESC , mon DESC , day DESC , ath1.ID DESC"$
sql.ExecNonQuery(str)
error
B4X:
(SQLiteException) android.database.sqlite.SQLiteException: near "(": syntax error (code 1): , while compiling: CREATE VIEW view_moshtari_sath as
why!!??
Help me please