Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
sqlite 나누기 연산시 무조건 정수로만 나오는 문제점 본문
sqlite3 에서 연산시 Decimal 로 나오는 문제.
select foreigner,volume from stockInfo where name='웅진씽크빅'; --foreigner : 83939 --volume : 541140 select foreigner/volume from stockInfo where name='웅진씽크빅'; --0 --해결책 select (foreigner+0.00)/(volume+0.00) from stockInfo where name='웅진씽크빅'; --0.155115127323798
'데이타베이스 > SQLite' 카테고리의 다른 글
| sqlite 범위지정후 SUM 하기 (0) | 2018.11.06 |
|---|---|
| sqlite소수점 자리수 및 표현법 (2) | 2018.10.28 |
| SQLite 날자관련정리 (0) | 2018.10.23 |
| sqlite3 레코드 추가/수정/삭제 (0) | 2018.10.22 |
| SQLite 날짜검색 (0) | 2018.10.19 |
Comments