Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 함수
- Linux
- Unity
- PyQt
- IOS
- ASP
- PyQt5
- node.js
- 다이어트
- urllib
- python
- PER
- sqlite
- MS-SQL
- javascript
- 유니티
- tensorflow
- 라즈베리파이
- 날짜
- pandas
- MySQL
- port
- 리눅스
- 맛집
- GIT
- flutter
- ubuntu
- mssql
- Excel
- swift
Archives
아미(아름다운미소)
sqlite 나누기 연산시 무조건 정수로만 나오는 문제점 본문
sqlite3 에서 연산시 Decimal 로 나오는 문제.
1 2 3 4 5 6 7 8 | 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 |