skip to Main Content

Laravel failing to update column with decimal type

I have the following code in a controller file $customer->update([ 'name' => $request->input('name'), 'address' => $request->input('address'), 'phone' => $request->input('phone'), 'percentage' => $request->input('percentage') ]); which successfully updates everything except the percentage field which is of type DECIMAL(2,2) I get no error…

VIEW QUESTION

MySQL wildcard search order

Working on a MySQL db which contains the Book Title, Author, Publication in a single column(field). The original db designer is said to put all those in single field to allow for easy search. Age-old client database, so I am…

VIEW QUESTION

mysql search value from nested json

I am trying to search userId for value 22 from nested json in mysql Column my json is '{ "data": [ {"calendarId":"11","userId": "12"}, {"calendarId":"21","userId": "22"} ] }' I tried the following syntax : 1. where JSON_EXTRACT(column_field,'$.userId') = 22 2. where…

VIEW QUESTION
Back To Top
Search