by Yogesh | Oct 13, 2017 | Asp .net MVC
What is singleton pattern 1.A class Object having only one instance and able to perform all task. 2.This design pattern is considered as creational(object creation) design pattern. 3.No constructor parameters are allowed while creating an instance. How to implement...
by Yogesh | Oct 11, 2017 | Python Tutorial
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1=2 name1 = 'AAA' # cursor.execute('update info3 set name = ? where id = ?',(name1,id1)) cursor.execute('delete from info3 where id = ?',(id1,)) db.commit()...
by Yogesh | Oct 11, 2017 | Python Tutorial
Source Code import sqlite3 db = sqlite3.connect('ganesha.db') cursor = db.cursor() id1 = 2 cursor.execute('select *from info3 where id=?',(id1,)) multiplerecord = cursor.fetchall() # print(singlerecord[1]) for row in multiplerecord: # print(row)...
by Yogesh | Oct 8, 2017 | Python Tutorial
How to insert data in Table using Python 1.? Placeholder 2.Using python tuple and keyname placeholder import sqlite3 db = sqlite3.connect('ganesha.db') id1 = 1 name1= 'yogesh' id2 = 2 name = 'vikas' cursor = db.cursor() # ? Placeholder # cursor.execute('insert into...
by Yogesh | Sep 10, 2017 | PIG tutorial
PIG Introduction Big is an Apache open source project pig works on MapReduce and hdfs and the script that we will read write to perform data analysis is called pig Latin. PIG is capable to read data from local file system and hdfs and able to write output data on hdfs...