我想在我的 getadvocacy 表中选择某一行,其中 id 是另一个名为泳装的表中的 id。
泳衣桌
id | name | average
1 | Abc | 90
3 | Def | 99
Run Code Online (Sandbox Code Playgroud)
getadvocacy
id | all_scores | average_score
1 | 70,70,70 | 70
2 | 70,70,70 | 70
3 | 70,70,70 | 70
Run Code Online (Sandbox Code Playgroud)
现在,我想从 getadvocacy 中选择但只有 1 和 3,因为它是关于泳装的数据。
预期产出
id | all_scores | average_score
1 | 70,70,70 | 70
3 | 70,70,70 | 70
Run Code Online (Sandbox Code Playgroud)
我试过这个,但它有不同的输出。
select getadvocacy.id, all_scores, average_score from getadvocacy WHERE getadvocacy.id IN (select id from swimsuit)
Run Code Online (Sandbox Code Playgroud) 我有一个针对客户的搜索输入。客户有一个地址,例如,某些地址中包含数字符号#51 Scout Fuentebella。我在搜索中包括了地址。
我的路线:
Route::get('customer/search/{input}', 'CustomerController@search');
Run Code Online (Sandbox Code Playgroud)
每当我搜索他们的地址,例如localhost:8000 / customer / search /#51 Sc时,都会出现以下错误:
RouteCollection.php第161行中的NotFoundHttpException: