Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Triggers associated with a table

Triggers in SQL of a table can be find by writing a SQL query and passing table name as its parameter for the query We will just pass the table name for that and it will provide all the triggers made for that table. Ex: select so.name, text fro

How to insert data from one table to another in MySQL?

We can insert data from one table to another in MySQL. For this we use the INSERT INTO SELECT statement that selects the data from on table and inserts that data into another table. INSERT INTO SELECT Syntax We can select and insert all the columns

Invoking controller/view methods from the console in Rails

At the time of development of a module or functionality we always curious that the code we wrote will work perfectly or not until and unless we run that in a browser. so rails provide us a way where we can test the functions via a console. By running

implement thumbnail image in image uploader

how to implement thumbnail for image in rails. step 1:- go to uploader inside views where you have written image uploader code for uploading image. uncomment this section #Create different versions of your uploaded files: version :thumb

ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint

This error generally comes when we want to delete child table row. To solve this problem we have to disable the foreign key checks. SET FOREIGN_KEY_CHECKS=0; Now you can fire your query. DELETE FROM TABLE WHERE ID = 'Somthing'; You can enable forei

Get all running/sleeping processes in database

Hi All, Some times we need to know the all running/sleeping process in database. We can use the below code:-- SELECT 'These processes are using database' AS Note ,[Database]=DB_NAME(dbid), spid, last_batch, status, hostname, loginame FROM sys.syspr

Create a zip with excluding folders using command

Sometime we need to create zip of the folder which contains several subfolders, but all folders are not necessary to include in zip. For such cases we will run following command - zip -r archiveName.zip folderName -x folderName/subfolder/**\* Wh

MySQL "IF" function

The function that returns a value based on a condition is MYSQL IF function. Hence MYSQL IF function is one of the control flow functions. The syntax of the MySQL IF function is as follows: IF(expr,if_true_expr,if_false_expr) For example, If we h

Load Image From Url

How To Load a Image Form a url You can use this class in your application to load image . It can be use by calling its DisplayImage(String url, int loader, ImageView imageView) function.This function there are three parameters first is String para

Affiliate Marketing Business : A Quick Guide

Do you want to start your Affiliate Business?   Every year hundreds of newbies start affiliate marketing business to earn passive income.   It’s far easy to make money by selling others products through blogs and/or website promot

1 133 258
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: