We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implementation 'org.flywaydb:flyway-core'
The text was updated successfully, but these errors were encountered:
review_count, review_sum, review_avg 동기화 쿼리
alter table restaurant add column review_count INT not null default 0, add column review_sum BIGINT not null default 0, add column review_avg FLOAT not null default 0; update restaurant set review_count = (select count(*) from review where review.restaurant_id = restaurant.id) where id > 0; update restaurant set review_sum = (select sum(rating) from review where review.restaurant_id = restaurant.id) where review_count > 0; update restaurant set review_avg = review_sum / cast(review_count as float) where review_sum > 0;
Sorry, something went wrong.
북마크 추가 쿼리
create table bookmark ( id bigint NOT NULL AUTO_INCREMENT, member_id bigint NOT NULL, restaurant_id bigint NOT NULL, primary key (id) ); alter table bookmark add constraint unique_member_restaurant unique (member_id, restaurant_id);
jinyoungchoi95
No branches or pull requests
implementation 'org.flywaydb:flyway-core'
The text was updated successfully, but these errors were encountered: