kakasoo / commerce-example-sql Goto Github PK
View Code? Open in Web Editor NEWcreate e-commerce tables and dummy data for MySQL
License: MIT License
create e-commerce tables and dummy data for MySQL
License: MIT License
datetime = 8bytes의 문자열
timestamp = 4bytes의 숫자형 (+3 bytes의 초단위)
timestamp는 시스템의 표준시간대를 토대로 utc로 변환하여 저장한다.
createdAt : 언제 해당 레코드가 생성되었는지를 의미한다.
updatedAt : 해당 레코드가 최근에 언제 수정되었는지를 의미한다.
deletedAt : 해당 레코드가 논리 삭제를 당한 일자를 의미한다. 물리적으로 삭제하기에는 사용자가 실수로 해당 데이터를 지우거나 하는 등의 이유로 복구를 요청하는 등의 위험성이 있기 때문.
2번은 써놓은 대로
select avg(c.count) from (select count(*) as count from guest as g group
by g.user_id) as c;
select avg(c.count) from (select count(*) as count from guest as g group
by g.user_id having count(*) != 1) as c;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.