문제

I just want to find the max value from the Visitor table. Last is working fine but when digit come VI9999 after that it always returns max value same not VI10000. Please Suggest me what I will do for this...

Thanks in Advance..

Sql query:

select MAX(TSID) 
FROM VISITOR_TABLE;
도움이 되었습니까?

해결책

select Max(cast(substring(TSID, 3, 10) as int)) 
FROM VISITOR_TABLE;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top