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 | 31 |
Tags
- pandas
- mssql
- 유니티
- 맛집
- python
- javascript
- PyQt5
- 날짜
- node.js
- flutter
- urllib
- tensorflow
- ASP
- PyQt
- 함수
- sqlite
- 라즈베리파이
- port
- 리눅스
- IOS
- MS-SQL
- MySQL
- Excel
- ubuntu
- Unity
- GIT
- PER
- Linux
- swift
- 다이어트
Archives
아미(아름다운미소)
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