Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to enter tavble in sal through sql

import pyodbc 
conn = pyodbc.connect('Driver={SQL Server};'
                      'Server=RONSQLEXPRESS;'
                      'Database=test_database;'
                      'Trusted_Connection=yes;')

cursor = conn.cursor()

cursor.execute('''
		CREATE TABLE products (
			product_id int primary key,
			product_name nvarchar(50),
			price int
			)
               ''')

conn.commit()
Comment

PREVIOUS NEXT
Code Example
Python :: found django install path 
Python :: qtextedit unicode 
Python :: ring check if a Ring function is defined or not 
Python :: z3 symbolic expressions cannot be cast to concrete boolean values 
Python :: ring Trace Library 
Python :: gfxdraw circle weight 
Python :: open urls using python grepper 
Python :: equivalent of geom smooth function in python using plotline lib 
Python :: ret, img_frame = cap.read() 
Python :: how to create dataframe from rdd 
Python :: weigted average in pandas 
Python :: python 2nd order ode 
Python :: regression avec sklearn best 
Python :: Matplotlib-Object oriented interface 
Python :: heatmap choos format for annotation 
Python :: Rebinding a list stored in a Flask Session 
Python :: matplotlib three dimensional plot 
Python :: Obtener el valor ASCII de un carácter en Python 
Python :: python colorama 
Python :: while my_input != "exit": 
Python :: Print all day-dates between two dates [duplicate] 
Python :: vs code notes extension 
Python :: reset all weights tensorflow 
Python :: Pandas automatic allignment of columns 
Python :: move to next iteration of for loop python 
Python :: add function name and line number in python log file 
Python :: find factorial of a number in python 
Python :: accessing list elements in python 
Python :: RRRR INSTEAD YYYY 
Python :: How to sort a list by even or odd numbers using a filter? 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =