Recently, in order to write a distributed data component to conceive a lot of scenarios, a simple and easy solution has finally formed in the head. Thinking about 1 o'clock in the morning last night, I found that the solution was simple, but all the database tools could not be used. Unless you write your own Query Analyzer to execute the programmer's own maintenance statements.Say do it, things go well, incredibly half a day to do a basic version came
VBS gets the names of all folders under the current directory, excluding subfolders. I want to work with each folder, so it's best to use the loop output.
When testing to ensure that there is a folder in the current directory can be, otherwise the output is empty.
Copy Code code as follows:
Set ws=wscript.createobject ("Wscript.Shell")
W=ws. CurrentDirectory
Set fso=wscript.createobject ("Scr
How to return all table names and column data types of a database in Mysql
How to return all table names and column data types of a database in Mysql
Desc table name;
Show columns from table name;
Describe table name;
Show create table name;
Use information_schema
Select * from columns where table_name = 'table name
1. Get the constant of the row number, file path file name, class name, and method name.The current row number in the _ line _ file.The complete path and file name of the _ file. If it is used in a include file, the include file name is returned. Starting from PhP 4.0.2, __file _ always contains an absolute path, while earlier versions sometimes contain a relative path._ Class name (New in PHP 4.3.0 ). Starting from PHP 5, this constant returns the name (case sensitive) when the class is defined
Article Title: Relax. recommended by netizens: Linux users are all big names. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Select the best release version
Installed on a DVD
Install the latest software.
Direct online update
At least 10 Gb for each update
What is Kerne
Implementation: Use php to save the names of all files in a folder to the MySQL database.
Note: enter it as A folder A. If this folder contains another folder B, only files in A are not displayed.The source code is as follows:
// Function: Save the file names of all files in the folder to the mysql database.// Configur
Php obtains the code of all table names in the mysql database. Copy the code as follows: $ serverlocalhost; $ userroot; $ pass; $ dbnamedayanmei_com; $ connmysql_connect ($ server, $ user, $ pass); if (! $ Conn) die (database system connection
The code is as follows:
$ Server = 'localhost ';$ User = 'root ';$ Pass = '';$ Dbname = 'dayanmei _ com ';$ Conn = mysql_connect ($ server, $ user, $ pass );If (!
Since Oracle9i, you can use the SYS_CONNECT_BY_PATH function to display the content from the parent node to the current row in the form of "path" or a list of hierarchical elements. Obtain the names of all fields in a table and separate them with commas. Selectmax (substr (SYS_CONNECT_BY_PATH (COLUMN_NAME,), 2) colfrom (selectCOLUMN_NAME, colu since Oracle 9i, you can use the SYS_CONNECT_BY_PATH function to
First, starting pointIn order to organize the data, in the consideration of how to bulk get the names of all the folders under a folder, copying a folder is too troublesome, a little bit of data thought of using the command line method to achieve.Second, the realization method1, the first step: Open the window command prompt;2, the second step: My folder is on the G-Drive under some path, then my operation
A sample shell script:Gets all file names, paths, and file sizes under the directory (including subdirectories).Code, Shell script: lsdir.sh#!/bin/bash# #site: www.jquerycn.cnfunction ergodic () { forFileinch' LS $1` Do if[-D $1"/"$file] then ergodic $1"/"$fileElseLocal Path=$1"/"$file local name=$file Local Size= ' du--max-depth=1$path |awk'{print $}'' echo $name $size $path fi Done} IFS=$'\ n'#这个必须要,
1
Use the DOS command to save all file names in the folder to the specified file, then read from the file and store in the vector
String imglist_file = "Test_result\\imglist.txt";//Store file name list
string temp_imgname;
String Dir_command ("dir");
Dir_command + = M_strimageset + "/b >" + imglist_file;//m_strimageset is the variable that I built before I stored the folder path
ifstream file (
Java gets the system path font, obtains all the file names under a directory, gets the current path
Copy Code code as follows:
Package com.liuxing.test;
Import java.awt.GraphicsEnvironment;Import Java.io.File;public class Test {
private static graphicsenvironment environment;/*** @param args*/public static void Main (string[] args) {Environment = Graphicsenvironment.getlocalgraphicsenvironm
We often keep the same kind of related Excel worksheets in the same document so that we can reference and view them among the tables. When the work in a document is expressed to a certain number, it becomes cumbersome to find the worksheet that you want. It would be a lot easier to create a table of contents worksheet showing the names and links of all the worksheets.
Here's a quick way to create a workshe
Iamlaosong folder inside the image file is saved with a single scan, the file name is the mail number, now want to collect these mail numbers, because the volume is very large, it is not possible to intercept a single, only through the program implementation, assuming that the current worksheet B is placed in the folder of these image files, The following program can be used to tell the message number of these image files: Sub findname () Dim FS, F, F1, FC, Mydir MaxRow = Sheets ("Mail Number").
ado| Data | database ' Suppose mcnndb is a ado.connection that has a database open
' Get all table names in the database the key is to use the Ado.connection OpenSchema method
' This method returns a read-only dataset, including system tables and user tables.
' Therefore, a collection is needed to save the user table
Public Function Getalltablename () as System.Collections.ArrayList
Dim T as New System.Coll
(datasource_username); returnuser;} /** * Get all table names for the specified database and user * @param conn Connection database object * @param user user * @param database name * @return*/ Public StaticList Getalltablenames (Connection conn, string user, String database) {List Tablenames=NewArrayList (); if(Conn! =NULL) { Try{DatabaseMetaData Dbmd=Conn.getmetadata (); //List of table namesResultSet
Tags: color objects type select Val Table name Export Data desc ObjectSELECT(case if A.colorder=1 then d.name Else ' end) Table name,A.colorder Field Ordinal,A.name Field Name,B.name field type,b.length field Length,G.[value] As Field descriptionFrom syscolumns a LEFT join systypes bOn A.xtype=b.xusertypeINNER JOIN sysobjects DOn a.id=d.id and d.xtype= ' U ' and d.nameLeft Join Sys.extended_properties GOn a.id=g.major_id and a.colid = g.minor_id--where D.[name] --where D.[name] = ' cityhot '-the
Label: Reprint Original AddressHttp://www.cnblogs.com/Fooo/archive/2009/08/27/1554769.htmlSELECT (case if A.colorder=1 then d.name Else ' end) Table name, A.colorder field ordinal, a.name field name, when Colum Nproperty (a.id,a.name, ' isidentity ') =1 then ' √ ' Else ' "End", (case when (SELECT count (*) from SYSO
Bjects WHERE (name in (SELECT name from sysindexes WHERE (id = a.id) and (Indid in (SELECT indid F ROM Sysindexkeys WHERE (id = a.id) and (Colid in (S
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.