hi
i test a "new" SQLite statement.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
The table is Create with this query
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Unfortunly the "Insert or Replace" dont work.
- the Log means: Error is near Select statement
- The select statement (test solo) returns NULL because the data is not in the database
any idears welcome
			
			i test a "new" SQLite statement.
			
				B4X:
			
		
		
		query_gpx=$"INSERT OR REPLACE INTO Berge (id, Berg, Lat, Lon, Cmt, Loc) VALUES (SELECT id FROM Berge WHERE Berg='${SumName}','${SumName}','${lati}','${loni}','${cmt.Replace(loc,"")}','${loc}')"$
	The table is Create with this query
			
				B4X:
			
		
		
		query_gpx="CREATE TABLE Berge (id INTEGER PRIMARY KEY AUTOINCREMENT, Berg TEXT, Lat TEXT, Lon TEXT, Cmt TEXT, Loc Text)"
	Unfortunly the "Insert or Replace" dont work.
- the Log means: Error is near Select statement
- The select statement (test solo) returns NULL because the data is not in the database
any idears welcome