Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Here im going to create a database in phpMyadmin.it shows this is not a number error.Here i have attached the image.When im going to save it shows
This is not a number!
You have to enter length for IsActive as it is of type BIT. In Mysql BIT field requires a length to be assigned.
For more details about Data types and their lengths , check out this page
http://www.tutorialspoint.com/mysql/mysql-data-types.htm
http://www.peachpit.com/articles/article.aspx?p=30885&seqNum=7
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I was given instagram database with some records and have 7 tables as follows:
Tables--
I am using MYSQL
I have a requirement check the User who have not posted a single photo using sql in MYSQL.
Any help will be appreciated
I tried to get details from Photo table using the query:
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have an ecommerce website, using Laravel and mysql. I need to auto change the currency based on the client country.
I already have the selection based currency change. I need to auto change the currency to the one of the user's country when visiting the website.
We have a laravel package called Torann/laravel-geoip for this purpose.
Add below snippet after finished installing this lib;
$geoData = geoip(request()->ip());
$currency = $geoData['currency'];
For more details, see this link; https://lyften.com/projects/laravel-geoip/doc/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have millions of data in my database table customer. In that, I have the id_token attribute which has value like cus00001 format now I want to change it to ank00001.
What will be the query in rails or mysql to do it for all the data in the database?
You can use simple update query using REPLACE function:
UPDATE `table_name` SET `id_token` = REPLACE(`id_token`, 'ank', 'cus');
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to display the list of staffs who check into work late in a week. For example the staff checks in at 8.10 when the supposed check in time is at 8.00 AM. I am using datetime for the datetimein and datetimeout field. Can anyone suggest how should I do it?
Well, with no sample tables to work from, it's hard to give a clear answer. But I think what you're looking for is the TIME() function.
This should get you started in the right direction:
SELECT * FROM timeclock_records where TIME(datetimein) > "08:00:00";
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
how to load mysql table to memorystream with delphi? If possible; making select * from table where ?=? will be very fast. but how?
If you have FireDAC, you could use LocalSQL to write a SQL query against any TDataSet descendent, including an in memory TClientDataSet or FDMemTable.
It's explained in the documentation, and there is a webinar from the author of FireDAC demonstrating how to do it.