質問編集履歴

1

s

2021/06/28 05:46

投稿

Meitoku
Meitoku

スコア44

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  ```
54
54
 
55
- $ delete from tweets where id=1;
55
+ mysql > delete from tweets where id=1;
56
56
 
57
57
  ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`sample_boad_development`.`comments`, CONSTRAINT `fk_rails_bea193dd32` FOREIGN KEY (`tweet_id`) REFERENCES `tweets` (`id`))
58
58