How to Save Mysql Query Result on a File
See sql script below: SELECT code, name, continent, region FROM country INTO OUTFILE 'c:/temp/countries.csv' FIELDS TERMINATED...
If you like what I do, you can support this blog by 💰 becoming my sponsor. I would be grateful for your contribution!
See sql script below: SELECT code, name, continent, region FROM country INTO OUTFILE 'c:/temp/countries.csv' FIELDS TERMINATED...
To create a postgresql dump in linux, execute the following commands: Login as root user >su - postgres >pg_dump -U username -W -...
The following steps will guide us in the restoration of an oracle dump file. connect as system and enter your password sqplus system@xe ...
The following instruction will help us in importing and exporting our oracle database. Create and restore dump file (http://www.datab...
The following article will help us in configuring our Toad Oracle Freeware with Oracle XE database. For development purposes I normally use ...
This script will change the value of the sequence value, for example we have a table EMPLOYEE and sequence EMPLOYEE_SEQ: DROP SEQUENCE EMPL...
Recently, we've use hstore data type in our database because of its key, value pair functionality and here's how I install hstore in...
This is how you would change your PostgreSQL user postgres password, in case you forgot it. This is done in ubuntu 12.04. 1.) Logon to you...
I've found this script somewhere on the internet, just for reference: SELECT [Table] = OBJECT_NAME(o.parent_obj), [Trigger] = o.[nam...
As the title implies we will try to convert a native sql that group and counts the number of row. We will assume that you have a column qua...
The following code is the native sql with the converted code in entity framework. It queries the sum of quantity group by branch, model, yea...
Aside from using the SQL Designer, you can alter a bit and date column's default value. ALTER TABLE TableName ADD CONSTRAINT TableName...
To md5 a string in mssql we execute this query: select HASHBYTES('MD5', 'password') //But this has a problem because it re...
This is how you will get the Date object from DateTime SELECT CONVERT(nvarchar(20), GETDATE(), 23) AS DateOnly For more MSSQL Convert Co...
I encountered the error below when creating a diagram in the Management Studio. "Database diagram support objects cannot be installed...
Just recently I was asked to normalized or divide a table into 2 tables. Unfortunately, the only column that linked them (email) allows mult...
We assume that you have successfully download and installed the OracleXEUniv.exe. How to change the default http and ftp port in oracle xe...
I want to duplicate my database schema, but I do not want to copy the data contents. There are 3rd party tools which I can use to achieve th...
Recently I was developing a c# application that uses sqlserver2005 database (express edition) setup on my laptop which has win7 os. The pr...
I always forget how to create an aspnet database so I'm noting it here: Just execute: c:\Windows\Microsoft.NET\Framework\v2.0.50727\a...
If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.
Hello!
I am very excited to hear from you.
Whether you’re working on a new startup or an existing project, feel free to drop a line and let’s start the conversation.
Cheers,
Ed
eplegaspi2@alum.up.edu.ph