Skip to content
Advertisement

Tag: mysql

How to revoke MySQL user privileges for one table?

When I have granted privileges to a user for some specific tables: How do I revoke the privileges for this user, just for table1? Answer Google is your friend! http://dev.mysql.com/doc/refman/5.7/en/revoke.html Syntax: To further explain this answer – I’ll teach how to fish (rather than just give you a fish). The MySQL documentation can look confusing at first – the “syntax”

SQL inner join syntax error

I have this error. I am new to SQL and can’t figure what is wrong with my syntax. I changed my INTERSECT statement to inner join realizing SQL does not accept such syntax. However I continue to get an …

Creating a mySQL sub query to list distinct rows from two queries

I have two queries: and The first query returns around 4000 values, the second query returns around 4100. I’m attempting to create a query that will return the rows which are distinct between the two values, I’m attempting this by using a nested or sub query but I’m struggling with syntax here. Having only worked with very simple queries before.

MySQL code to convert Excel datetime

Excel’s datetime values look like 42291.60493, which means MySQL sees them as strings and not as dates. Is there a MySQL code that can convert them to MySQL datetime? (i.e. like in MS SQL) Answer I can think of 2 solutions: Convert your dates within excel to a formatted date string that conforms to mysql’s date and time format using

Why Can’t I Connect to My Database Over the Internet

I have an sql database called roottesting and I manage it at the ip 192.168.1.121. I also have a simple java application that connects to it (or rather, is supposed to connect to it) over the Internet with a user named ‘user’ that has a host of ‘%’, which I know will make it usable for any computer that uses

Advertisement